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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

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

    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.

    Great, thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] how to exclude related posts in individual posts?’ is closed to new replies.