Exclude from WP_Query Loop
-
Howdy!
We’ve been using YARRP for a long time with the standard “Automatically display related content on” posts option. It works great, thanks!
However we’re implementing a new bridge custom Post Type called Film which can reference one or more posts where the film has been reviewed. If I grab the related posts with a get_posts() call I can loop through them in a much more complicated manner than a WP_Query() call. Unfortunately YARRP has decided I’m showing each of these posts rather than creating my own mini-archive listing and is placing Related Posts below each summary.
None of our other plugins like Social Sharing are displaying below these posts. I can’t spot any obvious setting to prevent YARRP from hooking into this loop. Since YARRP doesn’t do this on archive pages I’m baffled.
How can I prevent this from happening or do I have to abandon the use of WP_Query() as long as we use YARRP?
The page I need help with: [log in to see the link]
- The topic ‘Exclude from WP_Query Loop’ is closed to new replies.