How to filter posts based on category #32
-
Hello! This seems like it should be simpler than I'm making it, but my attempts thus far haven't worked. I currently have a I would like to only display Posts that include the category Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @KurtTrowbridge, You could get the posts for a particular category (or tag) like this:
You could also use a
To loop through posts that do or do not have a particular category, you can do this:
|
Beta Was this translation helpful? Give feedback.
Hi @KurtTrowbridge,
You could get the posts for a particular category (or tag) like this:
You could also use a
where_exp
filter:To loop through posts that do or do not have a particular category, you can do this: