As your blog content grows, you may find it helpful to know different methods to display categories on WordPress blog pages. You can create a page with a single category or multiple categories.
When you create a new category in WordPress, a page will be generated that includes all the posts that you’ve assigned to that category. To view the direct link to the page with a single category, go to WordPress Dashboard > Posts > Categories.
What if you want to create a category page that includes posts from specific categories?
Step 1: To begin, go to your WordPress Dashboard and select Posts > Categories. Create any of the categories that you would like to include on the category page.
Step 2: Hover your mouse over the category title and look at the bottom of your screen. You will see a long link similar to the example below.
The link includes the ID number for your category. In this example, it’s ID 6. Note the IDs of each of your categories and continue with the next step.
Step 3: Create a New Page with a title that will describe your categories. In this example, we’ll have a category page for Dessert Recipes that will include recipes for the following categories: cupcakes, cookies, and brownies.
Step 4: Under Page Attributes, select Blog as the Template type.
Step 5: Next you will need to enable a feature called Custom Fields. At the top of the page editor window, you will see a tab called Screen Options. Check the box by custom fields.
Step 6: Scroll to the bottom of the page editor window until you see the boxes for Custom Fields. Enter the text query_args in the Name field box. In the value field box, you will use the category ID numbers that you noted in Step 2. Separate the categories with commas.
Save your new category page.
You may find this method helpful when creating a navigation menu for your site.