WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Exclude posts from certain categories (6 posts)

  1. longnha
    Member
    Posted 1 year ago #

    Hello,

    The plugin work great but there have a category that I don't want to include in related post, simple because it's expired offer.

    There have anyway that I can exclude it?

    Thanks.

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    In YARPP settings, go to the "screen options" tab, and turn on the "The Pool" options. From there, you can exclude that particular category, and save. That should work for you.

  3. longnha
    Member
    Posted 1 year ago #

    Yes, I found it, thank you very much. :)

  4. Alberg15
    Member
    Posted 1 year ago #

    Hi. So I created a category "No Related Posts" and set that to exclude in The Pool settings. And I've tagged a post with that category. But the Related Posts still shows. I also tried with tags, but it had the same problem of not excluding the related posts. Any ideas of why this is so? Thanks, ab

  5. myladeybugg
    Member
    Posted 1 year ago #

    @mitcho thank you for the tip! I do have one question. Where can I add styles to the div class yarpp-related yarpp-related-none?

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @Alberg15 the "exclude" settings are to exclude those posts from showing up as related to others. If you want to only show the related posts on certain pages but not others, you will currently have to do that by modifying your theme in some way so that it calls related_posts() at some times but not others.

    @myladeybugg you should modify the styles.css file in your active theme. You might be able to do that within your wp-admin by going to Theme > Edit.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.