Not show on certain posts or pages

Not show on certain posts or pages 1
Oct 07, 2020 07:42 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe

I would like Related Post content to not show on certain posts and pages. For instance, not on the Contact page. How can this be done?

0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
Not show on certain posts or pages 2
Oct 07, 2020

Welcome to our forum.


i understand the issue, unfortunately sorry to say this feature isn't available right now.

but you can use action hook to remove related post conditionally by post id, please check the documentation


Not show on certain posts or pages 3
- Oct 07, 2020 09:03 PM
Flag (0)

Thank you for the quick response. I tried adding the "Remove related posts conditionally " code using my theme options custom code section and by adding it to the Single Page theme file (page.php) both after substituting $post_id == 896 for the actual ID but none of this seems to have an effect. I have to admit to being a novice in terms of coding. Is there any more advice that you can give me?

Sign in to Reply
Replying as Submit