WordPress.org

Forums

Manual Related Posts
[resolved] how not to display related posts on a page?? (2 posts)

  1. stardaug
    Member
    Posted 2 years ago #

    Need to disable related posts from showing on a specific page. Any way to do this? I don't see an option and don't see anything in this support area discussing it.

    Cheers

    http://wordpress.org/extend/plugins/baw-manual-related-posts/

  2. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Hello
    yes you can do this:

    add_action( 'wp_head', 'remove_mrp' );
    function remove_mrp()
    {
      if ( is_page( 'foo' ) ) {
        remove_filter( 'the_content', 'bawmrp_the_content' );
      }
    }

    Also if the posts are showing up under the pagination, change the priority :

    remove_filter( 'the_content', 'bawmrp_the_content' );
    add_filter( 'the_content', 'bawmrp_the_content', 5 ); // 0 to 9

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Manual Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.