- This topic has 4 replies, 3 voices, and was last updated 5 years, 4 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm trying to create a page with posts from a specified category, using the exact instructions given at "Create a Category Blog Page" and it just doesn't work. I've checked and rechecked. Instead of the specified category, it shows all posts.
The category page is made by specifying tags in a custom field. New field is "query_args" and the value is "Category=281" (without the quotes).
The only reason I can think of are two other custom fields created by a plugin, "mashsb_timestamp" and "mashsb_twitter_handle".
The argument isn't "Category=281". The argument should be cat=281. Don't use quotes either.
If you're adding the category page to one of your navs, there's a cool way to create the category archive via the Menu.
Navigate to Appearance => Menus in the WP Admin. Along the left side select Categories. Here you can select a category and then "Add to Menu." After selecting "Save Menu", view your site and test that your category archive is as desired.
Thanks for your reply, and I apologize: "Category = 281" was an error only in the way I entered it in the question. The value that actually appears is correct, "cat=281".
Very good! Thanks for that suggestion.
Now, if there were some way to combine that with a tag. X category AND Z tag. But just the category is great.
© 2023 WPEngine, Inc.