Show category a, exclude category b
-
What is the loop syntax to display posts from category a but exclude posts that are also tagged with category b?
If I use [loop category=a category=b compare=not] I get the results from [loop category=a,b compare=and]
If I use [loop category=a,b compare=not] I get the results of [loop category=a,b] which is compare=or.
It would be very helpful if the category include is specified separately from the category exclude, so each part can contain more than 1 category.https://www.ads-software.com/plugins/custom-content-shortcode/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show category a, exclude category b’ is closed to new replies.