WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. robRalston1
    Member
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic