‫In this lecture of the course, we're going to be taking a look at the taxonomies.
‫So let's just go ahead and let's get started.
‫Now what a taxonomy is.
‫In simpler words, a taxonomy is basically categorization of your particular post.
‫Like let's suppose that we are building a blog website in this particular section.
‫And the blog website that we are building is going to be based on the travel blog.
‫Now, based on the traveling, what are the categorization we can do?
‫So, uh, there can be many types of categories, like there can be a main category, and in that category
‫there can be like, let's suppose that if any person is looking for itineraries, then all of the itineraries
‫will be given to him like a five day itinerary, ten day itinerary.
‫Similarly, let's suppose if someone is looking for activities like.
‫Let's suppose that someone wants to visit any of the country and he's looking for activities based on
‫that country.
‫Um, it can be skydiving, it can be paragliding, anything.
‫Then there should be a separate category for it so that the person can actually like differentiate between
‫so many of the posts.
‫Like, let's suppose that we are building a blog website, and we have around 1000 posts on the blog
‫website now, it's going to be really much harder for the person to navigate or differentiate different
‫type of posts that we will be adding.
‫For example, let's suppose that I am actually a travel blogger and I have recently, uh, visited Istanbul.
‫Now, all of the activities that I did in the Istanbul, it can be either the skydiving or let's suppose
‫that there was actually a hotel or Airbnb that I stayed in, and I really loved it, and I want to actually
‫feature that on my blog, and I want to write an article on it.
‫Then I can add these type of things actually in a category, so that it is going to be really much easier
‫for other person or my users to navigate through the website.
‫And this is how the taxonomies work.
‫Now we're going to be actually using the default taxonomy that WordPress has.
‫And in the next lecture we're going to be adding our own custom taxonomy.
‫So let's just go ahead and let's get started.
‫First of all, what you need to do is to go into your dashboard.
‫Once you are in the dashboard you can see that we have got this post.
‫And if you bring your mouse to this post, then you can see that we have got this categories.
‫And if you click on it, you can see that we have got some of the category which is going to be the
‫default one, which is going to be named as the uncategorized.
‫And this is right here.
‫And it currently has three post inside here.
‫Now let's suppose that if I just click on view over here in a new tab, then you can see that this is
‫actually the uncategorized category.
‫And inside this category I have got three posts.
‫This is the number one post.
‫This is the other post.
‫And after that we've got another post as well, which is set to the Hello World!
‫So now let's just go ahead and let's change this category like we do not actually want to add the uncategorized
‫category in our blog.
‫We want to use we want to actually add our own categories.
‫So let's suppose that I want to edit this.
‫So I will just click on edit.
‫And I want to name this category as the itinerary.
‫Now once I have actually added the name of the category, then I'm not going to be touching this slug
‫right now.
‫I'm going to be showing you the difference.
‫All right.
‫So once I have updated the name and then I just click on update.
‫Now if I just go ahead and if I refresh this, you can see that it shows itinerary over here.
‫But if you take a look at the URL over here, it's still slash uncategorized.
‫Even if I just go ahead.
‫And if I click on go to categories, and if I just want to view this again in a new tab, you will see
‫that this is showing category slash uncategorized.
‫So that is why the slug actually means that this is going to be the URL.
‫So we're going to change this as well.
‫So let me just go ahead and let me copy this.
‫Let me now paste it over here.
‫Now I'll be making sure that the words the characters that I'm using are small case not the uppercase.
‫And now I'll be going ahead and I'll be hitting on update.
‫That's it.
‫Now you can click on go to categories back.
‫And now if you just go ahead and if you refresh this you can see it shows page not found.
‫And the reason for that is because now slash uncategorized does not exist.
‫And that is why if you want to view the category then we have to right click on it.
‫And we have to open this link in a new tab.
‫Now this is our first category that we have added.
‫Now inside this category we have got so many of the posts all right like we have got ten days Dubai
‫budget the test which is the one that we created in the previous lecture.
‫And we have also got the hello world.
‫Now let's suppose that if I want to actually add the multiple categories, then how can I do that?
‫And it's really simple.
‫All you have to do is to enter the name of the category.
‫So like, let's suppose that I want to actually add a new category named as the activities.
‫All right.
‫Now, I do not have to actually type in the slug again if I just go ahead.
‫And if I just hit on add new category, it's going to get the slug from the name itself and it's going
‫to create its own slug.
‫So let's just go ahead and let's click on Add New Category.
‫And you can see that now the slug is already here.
‫And we've got another category as well.
‫Similarly let's suppose that if I want to add another category which I can name as stays like.
‫Let's suppose that if I want to feature any of the stays like I visited a new hotel, it's really good.
‫I want to feature that on my blog so I can do it like this.
‫All right, now I can just click on Add New category and this is also added.
‫Similarly, what you can do is that you can also add uh the child categories as well.
‫Like let's suppose that inside the stays we can create two subcategories like uh, let's suppose that
‫a stay can be either a hotel or a stay can also be an Airbnb that I stayed in.
‫So there can be two categories, right.
‫So I'm going to be creating that.
‫First one is going to be hotel.
‫And now this is going to be the parent category, which is set to none.
‫Like it doesn't have any of the main category or the parent category.
‫But since I actually want to select the parent category, so I'll be selecting the parent category as
‫this days.
‫And now I'll be clicking on Add New Category.
‫And now you can see that hotels has become a subcategory of this days.
‫Now I know that you might be confused, like why are we adding these categories?
‫But everything will make sense later on.
‫So now let's suppose that I also want to add the Airbnb.
‫So I'll be adding the Airbnb and the parent category is still selected as stays.
‫And now I will click on Add New category.
‫All right.
‫So now you can see that our some of the categories are actually added.
‫Now you can go dive deeper into it like inside the activities you can create more sub categories like
‫paragliding or these kind of things like if you want to add more of the activities, you can add them
‫based on the sub category.
‫But here comes another part and that is the tags as well.
‫So like the categories you can also add the tags.
‫Now the difference between the categories and the tags is that there is uh inside the categories.
‫There is going to be like a main category and a sub category.
‫Categories are like the main category.
‫All right.
‫Are like the main thing that you want to differentiate it.
‫Like let's suppose that if you will be adding so many of the posts based on the stays, then you would
‫be adding that inside a category.
‫Otherwise, if you want to actually create post, uh, and that posts are going to be based on the tag
‫that is budget friendly, then you can add that budget friendly keyword in the tags, and your users
‫can actually, uh, take a look at all of the posts that are inside the budget friendly tags, not the
‫categories, because there is going to be a big difference.
‫Like budget friendly should be coming in the tags and not in the categories.
‫Otherwise it's up to you if you want to actually add the budget friendly in these type of things inside
‫the categories, it's up to you.
‫You can add it.
‫So now let's just go ahead and let's assign some of the posts to the category so that you can actually
‫understand it.
‫Now what I'll be doing is that I'll be going into the.
‫All post and once I am in the all post, you can see that I have got the categories over here and all
‫of the posts are actually set to the itinerary as a category.
‫So this is actually a ten days Dubai budget itinerary.
‫Let's suppose that if I want to rename this.
‫So I'll be just clicking on edit.
‫And this has taken me to this particular edit page where I want to actually change the title.
‫So I'll be changing the title to.
‫Like this Burj Khalifa View hotel made my day.
‫And now once I have actually added this title, then I want to assign the this particular post, not
‫on the itinerary based on this, but I want to assign this actually inside this stays and inside this
‫stays.
‫I want to select this hotel because this is actually the hotel, uh, which review that I have written
‫on the post.
‫And now what I'll be doing is that I'll be clicking on update.
‫And now if you will click on all post.
‫You can see that we have got this Burj Khalifa view hotel made my day and this is inside the hotels
‫category.
‫So now let's suppose that if actually anyone wants to read all of the posts that are based on the hotels,
‫and that particular person is looking for all of the hotels, and he wants to view like which of the
‫hotels that I have personally visited, and he wants to take a look at that.
‫Then he can simply click on the view over here, and he's going to be redirected to all of the hotel
‫category, and he can read all of the posts based on this particular category.
‫Now, similarly, uh, in the in in the upcoming lectures, we're going to be creating menu as well.
‫Like this one that we actually created in the previous project.
‫And let's suppose that this is going to be the categories.
‫And if I bring my mouse into it, there is going to be a drop down and then all of the categories or
‫the sub categories will be shown to me right here, and the person can actually select it, and then
‫he will be taken to that particular category.
‫And then he can actually view that category.
‫So this is how it's going to actually work.
‫Now let's just go ahead and let's uh add some of the tags as well.
‫So now tags are basically something that you do not add inside the menu for the users to browse.
‫However, tags are something that you can add on the website, and people can actually share those tags
‫on their social media.
‫Like if anyone wants to, uh, take a look at all of the budget friendly posts, then what you can do,
‫you can create a tag on that.
‫And, uh, other people can actually share that tag to their friends and family, and they can also
‫view all of the posts based on that.
‫That is why the tags are they used.
‫But, uh, I have seen most of the blogs websites.
‫They do not use tags at all.
‫However, it is recommended that you do add some of the tags like budget friendly and these kind of
‫things.
‫If you want to build a travel blog.
‫And this is also going to, uh, help you with the SEO as well.
‫Like if someone searches for it and that has that tag is on your, uh, website, then that particular
‫person can actually land on your tag page.
‫So this is a good thing.
‫All right.
‫This is a good thing to actually add the tags.
‫However, it's not that much important.
‫If you want to leave it.
‫You can also leave it.
‫But if you have it add it.
‫It's good.
‫So let's just go ahead and let's add a uh, some of the tags.
‫So now let's suppose that I actually want to add the tags like beaches.
‫Like if I have visited some of the beaches in a country and I want to showcase the beaches, like if
‫we, um, go to the turkey, then we have got so many of the beaches like we have got in the Fethiye,
‫we've got Chalish Beach and so many of the beaches.
‫Like, I want to write a review on that.
‫So let's just go ahead and let's add the name.
‫Over here, the beaches and inside here I can actually write reviews of all of the beaches I have actually
‫been to.
‫Similarly, I'm going to be adding the budget friendly.
‫Also, I am going to be adding waterfalls.
‫All right.
‫So let's suppose that I go to a country and I've seen these great waterfalls over there.
‫Then I can view it.
‫Now let's suppose that if I want to assign any of the posts with these particular tags, then I can
‫just click on all posts.
‫And now let's suppose that this is actually a Dubai budget itinerary.
‫All right.
‫So I want to assign this particular post with that particular budget friendly tag.
‫Then what I have to do, I have to click on the edit and it's going to take me to that particular post
‫edit page.
‫Once I am in here, then you can see that I have got this tags over here, and if I just click on here,
‫it does not show me the list of all of the tags, because there are so many of the tags that you can
‫add, like if you have seen Facebook, like how many of the hashtags we actually use on the Facebook
‫and the Instagram like hash tag, selfie hash tag, this hash tag, that hash tag.
‫So my god, so these type of tags you can edit.
‫And there is going to be so many number of the tags.
‫So I would recommend if you are adding any of the posts like and you take a look at the title, you
‫find something, just add it in the tag so that other people can actually navigate it.
‫Now let me show you how it's going to actually work.
‫So let's suppose that if I want to add the budget.
‫All right.
‫So I'll be just adding some of the words and it's going to search uh on the tags.
‫And if there is any of the tag that that exists, then WordPress is going to tell me to use this tag.
‫And I can just click on it and it's going to be assigned to this particular post.
‫Now I can just go ahead and I can hit on update.
‫And now if I just go ahead and if I click on the tags over here, then you can see that I have got this
‫budget friendly which is set to the one.
‫And if I just click on view over here, then this is actually the tag archives.
‫And all of the budget friendly posts that I will be adding will be shown over here.
‫Now you can actually work up with this URL like your, uh, social.
‫You can use this, uh, tag on your social media accounts, but it's just not actually recommended to
‫use it on the menu.
‫However, it's up to you how you want to build a blog website.
‫It's up to you.
‫So the blog website that we're going to be building in this course, we're going to be adding the categories
‫in the menu, not the tags.
‫Tags are something that you can add so many, and it's up to the person to like how they want to use
‫the tags, especially with the SEO tags are really very helpful.
‫So that's it.
‫Now we have actually used the WordPress uh, default taxonomies right here, which are the categories
‫and the tags that we added.
‫All right.
‫In the next lecture I'm going to show you how you can actually go ahead and how you can add your own
‫custom taxonomy.
‫So stay tuned for that and bye bye.