Support » Plugin: Yet Another Related Posts Plugin (YARPP) » [Plugin: Yet Another Related Posts Plugin] Excluding post with custom field

  • Resolved robRalston1

    (@robralston1)


    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/

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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Excluding post with custom field’ is closed to new replies.