Forums

Yet Another Related Posts Plugin
[resolved] Excluding post with custom field (2 posts)

  1. robRalston1
    Member
    Posted 9 months ago #

    Hey,

    I have a wordpress site that has a custom field to set posts to private or public so that some content is only viewable by members.

    I was hoping someone could help me get this plugin to only show post with the meta_key value public to non logged in users and viceversa for logged in users seeing all posts. I have tried adding a custom WP_guery on my template file problem is it show the current post in the related posts....

    any ideas?

    thanks

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 9 months ago #

    What you'll need to do is turn off the "automatic display" option, then call the code related_posts() in your theme's code, just when your criteria are satisfied. Hope that helps.

Reply

You must log in to post.

About this Plugin

About this Topic