I’m trying to build a loop that will grab posts only from a single category. After going through the documentation I’ve tried it several ways but keep getting the same result.
For the following example (pulled from page one of your documentation)
You can use taxonomy and terms to get posts from a certain taxonomy term.
<Loop type=post taxonomy=category terms="hello">
For a more detailed description, please see the list of query parameters from the documentation page Loop: Post, and search for the word “taxonomy”. There are some related parameters like taxonomy_compare and taxonomy_relation.
I was thinking it’d be nice to have a shortcut for querying by one or more categories (or tags), and it already exists: the category and tag parameters.