Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the question-answer domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u845912282/domains/pickplugins.com/public_html/wp-includes/functions.php on line 6121
Not show on certain posts or pages

Not show on certain posts or pages

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

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
0
Not show on certain posts or pages 2
PickPlugins
Oct 07, 2020
Flag(0)

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

https://pickplugins.com/documentation/related-post/action-hook/related_post_main/

 

Not show on certain posts or pages 3
cpunter
- Oct 07, 2020 09:03 PM
Flag (0)
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


Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/u845912282/domains/pickplugins.com/public_html/wp-content/plugins/post-grid/includes/functions-builder.php on line 10