Learn All About WordPress Categories And WordPress Tags
About This Lesson
Before starting this lesson, I recommend that you,
Read All About It
What Are WordPress Categories?
Categories allow you to arrange your content into different, well categories, and thereby organize your posts into groups of related content, which your visitors can go through at anytime.
So using bbc.com as an example, you could have three categories called “News”, “Sports”, “Entertainment” and then group together all your posts on those subjects.
This way if a visitor to your site is only interested in posts about “Sports”, they can look through an archive page of all your “Sports” posts, and ignore the rest.
With categories you can also have hierarchies. So for instance using the Sports example, you could have,
- Parent Category > Sports
- Child Category > Football
- Child Category > Tennis
- Child Category > Golf
Which breaks up your content even further, so those only interested in your “Golf” posts, wouldn’t have to read posts on all “Sports”, they could just look through the “Golf” child category.
It’s worth noting that all posts in a child category will still show up in it’s parent category. So all the posts you assign to “Golf”, will still show up in the “Sports” category.
Categories are something you HAVE to assign to your posts. This is compulsory. So even if you’re not interested in using the category feature on your site, you’ll still need to assign at least one category to your posts.
What Are WordPress Tags?
Tags are similar to categories, in that they allow you to organize your posts into groups of related content, which your visitors can go through at anytime.
However there are two main differences,
- Tags are optional
- Tags have no hierarchy, meaning there’s no relationship from one Tag to another
So you might use Categories for a broad range of subjects, i.e. News, Sports, Entertainment, and you might use Child Categories to break your posts up even more, i.e. Football, Tennis, Golf.
With Tags, you can arrange your content into even more depth, i.e. you might create Tags for sports teams or sports stars, which your visitors can then go through and they’ll see all the posts you’ve “tagged” with that sports team/star.
How To Add, Edit And Delete Categories Or Tags
To create new categories or edit/delete old ones, you need to go to the navigation menu and hover over “Posts”, then click “Categories”. For Tags, you’d obviously just click “Tags”.
This will then take you to the category screen within WordPress. Let me briefly walk you through all the options within categories.
- Name: – This is where you can give your category a name.
- Slug: – This lets you set the address of your category, which will be, www.yoursite.com /category/what-you-put-in-the-slug
- Parent: – If you want to create a “Child Category”, first create the parent category, then create another category, but when you create it, select the parent from this drop-down menu
- Description: – Some themes may show the description you enter here at the top of the category page, to explain to your visitors what they’re looking at
- When you’ve entered the details above, click “Add New Category”
- If you click the name of the Category, you’ll be able to edit the details of the category, i.e. the name, slug, parent and description
- If you want to delete the Category, simply hover over its name and click “Delete”
- Notice how the Golf, Tennis and Football categories are indented. This is because they are Child Categories of Sports
And that’s it for categories.
The only difference with Tags, is that you don’t have the, “3 – Parent”, option. But everything else is the same.
How To Use Categories And Tags In Your Posts
Adding a category or tag to your post is really easy.
First you need to go to the individual post that you want to add categories or tags to.
- For categories, simply tick the boxes next to the category that you want to assign to your post to. In this example I’m assigning it to multiple categories, “Uncategorized”, “Sports” and the child category of “Golf”
- You don’t need to go to the category screen to create a new category, simply click the “+ Add New Category” button, give the category a name, and WordPress will create a new one for you
- To add a tag to your post, simply start typing the name. (If you’ve already created a tag, see 4 below.) If you want to create a new Tag without having to go to the Tag screen, simply type out the full tag, then click add, and it’ll create a new one for you
- If as you start typing out your tag, you see the name of the tag you want to use, then it means you’ve already created the tag. You don’t need to type out the rest of the text, simply click the highlighted tag, so in the example above, “Sir Alex Ferguson” and the tag will then be added to your post
Setting The Default Category
Because categories are compulsory, if you forget to assign one when publishing your post, WordPress will automatically assign it to your default category.
You can change the default category in your Writing Settings.
I’ve created a number of lessons for you, which show you exactly how to create the content for your website,
- Learn how to use the visual editor to style your content
- How to add media into your content
- How to embed videos into your content
Then when you’ve learnt this, the next step will be Step 5 – Install and setup your WordPress theme.