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?
- Get old values for post before saving new ones
- Execute function when post is published
- how to limit edit_form_after_title hook to page and post edit only?
- 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
- Filter post before *editing*
- 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
- Limit posts per author role (excluding admin) in home page
- 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
- Which WordPress hook fires after post content loaded?
- What is the filter or hook to add admin controls to posts on the front end?
- Move first half of posts to one parent page, second half to the other page
- 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)
- How to access $post from a callback function
- 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
- What file is the standard frontpage that lists all the posts?
- 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
- “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?
- How to show only homepage in google results instead of privacy, contact pages
- 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?
- Make current post the homepage
- 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
- Blog images not showing on homepage
- Grab meta data before post is saved
- Display post on main page with thumbnail
- Can’t get post_updated hook to work
- How to get the postID inside ‘content_save_pre’? Other hook?
- 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
- save_post not working
- How to have more post in a page than in your home page
- Related post by category throws internal server error
- Display content from specific category
- Admin notice on wp_insert_post
- Modify upload directory to use post category slug in file path on multisite installation
- WordPress as microblog: show excerpt instead of “(no title)” in posts view
- How to specify a post category for the home (posts) page?
- Comment count next to post title?