100% Uptime SLA, 24/7/365 Live Support & Fast Cloud Servers
Writing blog posts in WordPress is one of the most common tasks performed on the popular Content Management System, but when you start having more than a few posts, what happens if you'd like to show some of them on one page, some on another, or even let your users browse your posts by category?
Perhaps, like us, you have a website with a bunch of tutorial posts (you're reading one now!) but also put out news posts or information about up coming events, or anything else you can think of, and would like to keep them separate.
In comes categories - a feature which is part of the WordPress core.
Today, we'll take a look at how to create categories, and also how to assign them to a post.
Firstly, from within your WordPress admin, you're going to want to go to "Posts->Categories"
This will take you to the post categories page, which will show you a list of all existing categories, but also allow you to create new categories.
As you can see, there are a few options which need to be filled out:
Once you've filled out the form with your new category info, simply click on the "Add New Category" button.
Now that we've got a category or categories set up, let's take a look at how we assign a post to a category.
It's worth noting that a post can be assigned to multiple categories at one time, or simply set to 1 category.
To assign a post to a category, either "edit" an existing post, or add a new post and then click on "Document" at the top right
Once the document section is open, simply scroll down and you should see the categories section - this will allow you to tick the category boxes you wish to assign to the post.
You'll also notice on our screenshot that there is a dropdown box "Select the primary category" - this will not show up if you only select one category, if you select multiple categories the box will automatically appear.
Once you've set the category or categories you wish to use, simply click the publish button at the top (or the update button, if you're editing an already published post).