Related content + Loops
-
Hello,
Im trying to create a “lreated content” sidebar, but with more relevent articles pushed to the top.The articles are a Custom Post Type, with Custom Taxonomies, and im trying to make no extra work/tweaks on the admin side either.
The current code im trying is here:
https://pastebin.com/cF1XcshHIdeally I would like to return posts based on:
Category 1 AND Category 2
– Run LoopCategory 1 OR Category 2
– Run Loop (but exclude posts returned in first loop)Is it possible to do this, with one single query/loop?
Or would it have to be 2 seperate loops?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Related content + Loops’ is closed to new replies.