WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] how to exclude related posts in individual posts? (5 posts)

  1. hamburgcity
    Member
    Posted 1 year ago #

    hi, I love this plugin. thanks! but is there a way exclude the related posts in individual posts? thanks in advance marc

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    You mean you want to hide the "related posts" display on a particular page? I'm afraid there isn't a super simple way to do that.

    The two options are: 1. use CSS to hide the related posts display (every post has a unique <body> ID you can refer to) 2. turn off the "automatic display" and instead call related_posts() in your theme, only on pages where you want them. This requires PHP.

  3. hamburgcity
    Member
    Posted 1 year ago #

    Thanks. I like Option 1.. How do I hide?

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Assuming your related posts HTML has an id like 'related', you could add css like

    .post-123 #related {
    display: none;
    }

    assuming 123 is the post id.

  5. hamburgcity
    Member
    Posted 1 year ago #

    Great, thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags