Simply
if(!is_home() && !is_front_page()) add_action( 'thesis_hook_after_post', 'my_related_posts' );
will do that for you. It will not do the add_action() when we are at the home page or not any front page.
If it doesn’t work for you, may be you need to contact with the Thesis team.
Related Posts:
- Keep featured content post in homepage with original order
- Hook that get’s triggered when the author of a post is changed
- The hook for the AJAX Add to Cart button?
- Action hook ‘wp’ firing twice… why?
- Template file for static posts page does not get loaded?
- In what sequence are the hooks fired when a post is “published”?
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- how to display full post with pagination on home page
- Better post meta efficiency?
- Count singular post views automatically
- How to change post status from publish to draft using hook in wordpress?
- How can I specify a category post on my home page
- Hide parts of the post content on the home page
- Show post titles only on the homepage
- WordPress Delete hook with wp_delete_post function?
- Displaying Page Title on index.php
- Custom function for “Submit for Review” hook
- Linking to page with all posts
- First hook to use current page post id
- How to place HTML below the title of the (custom) post overview
- How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?
- How to link up “read more” on excerpts hack from WP Recipies
- Does an action fire when adding a tag via the “Tags” meta box?
- Are posts updated or built from revisions + autosaves?
- Can I set and show “important” post in my blog?
- How can i do something after head like adding a hook for after head but before post
- How can I remove posts of a certain category from homepage after a specified time period?
- Action hook for new pending posts?
- How to retrieve the postID in a “image_send_to_editor” hook function?
- How to make the post summary taller?
- Register post status, exclude from searches
- Static page does not show my posts
- Properly display posts on homepage
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How to modify post content?
- How to show last post of each website of a MU wordpress in HomePage
- What is the filter or hook to add admin controls to posts on the front end?
- Adding buttons to Add New Post and Add New Page
- use wpml_post_language_details function other plugin based on $post->ID [closed]
- Hide a specific category in admin All Posts page (WordPress)
- Updating post data on save (save_post vs wp_insert_post_data)
- How do I display some posts fully on the homepage, and some as an excerpt only?
- Editing the default page to show all posts, rather than most recent ones
- Copy post to separate database with “add_action(….)”
- Hooking into the post editing screen for an existing page only
- Trying to alter the post_content through the_post
- Hide posts belongs to few categories in homepage
- Call Web Services on post first publish
- How to dynamically parse and transform post/page content before displaying it?
- What does WordPress do if I save a post without content/title? [duplicate]
- Adding bootstrap classes to video shortcodes
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Loop doesn’t exclude the specified category in home page
- preg_replace not removed “class”
- Single Post in Tab/Slider
- Divs appearing everywhere in post content
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Modify posts listing at back end
- Is it possible to add a shortcode below post title?
- Automatically set post_parent value
- Add hero image to home page (blog format) via the dashboard
- Custom home page with full post for first one only
- Inserting an example of the last 3 post on to the homepage
- I don’t want the complete article to show on homepage
- Post is in descendant category not working in home.php
- links to posts not working on homepage
- how many visitor open this post? [closed]
- What’s a theme that properly handles previews of different types of posts?
- Conditionally exclude post from specific category on home page sidebar?
- “Blog pages show at most” in setting not working
- Posting to WP via URL
- Why is WordPress showing a blank excerpt for just one of my posts?
- Is there a way to know when a page has been updated and do some action only once?
- Restricting displayed posts to posts from only select authors
- How can I change the date format of the revision list?
- Hook when post is set from published to draft?
- Is update_post_meta used when save_post action hook is invoked?
- Include Recent Post in Category
- How to Make my Homepage Display a Single Specific Post?
- Get Category in save_post Hook
- Count singular post views automatically
- How to prevent post update using transition_post_status
- Blog featured images disappeared on my homepage
- Display post on main page with thumbnail
- Can’t get post_updated hook to work
- wp query custom orderby not custom field
- Post as frontpage – avoid duplicate content
- Link post to blog from a static page
- Checking if some condition is matched before inserting post into database
- 404 error on every post and page other than home
- fire action when post is being edited as well as saved?
- Trying to display stick or featured post on homepage
- Which hooks are essential for post templates?
- Home page: using custom fields for posts and pages
- How to have more post in a page than in your home page
- Related post by category throws internal server error
- Admin notice on wp_insert_post
- Modify upload directory to use post category slug in file path on multisite installation
- How to specify a post category for the home (posts) page?
- Comment count next to post title?