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

  1. robRalston1
    Posted 3 years ago #


    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?



  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years 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

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic