FREELessons: 17Length: 2.3 hours

Next lesson playing in 5 seconds

  • Overview
  • Transcript

3.1 WordPress Pages vs. Posts

This is the start of a new chapter in this course, one which is dedicated to content management. In the end, WordPress is a CMS (or content management system), so just from that title I think you can understand the importance of this chapter.

In this lesson, you’ll learn about WordPress pages vs posts. These are the two main types of content in WordPress. You'll learn about adding and editing posts and pages, and we’ll also discuss the difference between them. So let’s begin.

3.1 WordPress Pages vs. Posts

Welcome to lesson number five. This is the start of a new chapter in the course, one which is dedicated to content management. In the end, WordPress is a CMS, or a content management system. So just from that title, I think you can realize just how important this chapter really is. Now, in this lesson, you'll learn about adding and editing posts and pages. These are the two main types of content in WordPress. We'll also discuss the difference between the two. So let's begin. So what are posts and pages? Well, in WordPress, we have several different types of content. Four to be exact. We have posts, comments, users, and links, okay? Pages represent a post type. Okay, so essentially, pages are posts, but they're a different post type. Now, to see the difference between posts and pages in WordPress, let's check out our front end. So this is the actual website that we're seeing here. And what you see here, for example, this Hello world!, this is a post, okay? It has a title, it has metadata, like the author, publish date, number of comments, and then it has the content. And of course, you can attach comments to a post. Pages, on the other hand, now let's see if we have one created. We should have a sample page. We do, here it is, Sample Page, right? Pages are similar to posts, except they don't have the metadata displayed. And usually, they don't have comments, right? So it's just a container for a specific piece of information. And if you think about a regular website, you'll have your regular posts in the blog, right, the different entries, and then you have the website pages, the homepage, about page, contact page, portfolio page, right? These are all individual pages. They each present a different type of content. And the difference between them and the posts is that they don't have comments, and they don't display that metadata, like the author, publish date and so on, because it's not necessary. So that's the difference between posts and pages. And I repeat, pages are just another type of post. In the end, WordPress has these four content types. We have posts, users, comments, and links. So now that we know the difference, let's see how we can manage posts and pages. So from the back end, let's start with posts. If we click the Posts category here, we'll access some sub features, like adding new post, getting to the categories, and also the tags. We'll cover these in just a little bit. On the right side, we have the list of currently created posts. We have a single one right now. It's title is Hello world! And when we hover on it, we have access to some quick actions like Edit, Quick Edit, which edits these posts in line, Trash to send it to the trash, or View to open it in the front end, just like this. If we click Edit the normal way, it's gonna take us to the WordPress Editor, this is actually called Gutenberg, but we'll cover that in the next lesson, where we can edit the content of that post. Now, if we want to add a new post, we can do that by clicking this button or this button. Or we can go to the dashboard and we can quickly create a draft here, for example. Click Save Draft. And now if we go to Posts, we'll see that My draft now has the status of Draft, which means it's saved in my database but it's not published just yet, okay? If we go back to the front end, you'll see that the only post we have showing here is Hello world! But if we decide, okay, I like this, let's publish it, We can go open it in the Editor, and we can either do a preview, which was gonna open it in a new window, or we can publish it directly. And when we publish a post, we have the option to change its visibility. So who will actually be able to see this post? When do we want to publish it? Immediately? Or we can schedule a particular date and time for publishing. And also, we can add tags to it. So let's hit Publish. Now the post is live. So if we go back to our front end here, our website, we can see my draft is now available as a published post. If at some point you decide to unpublish it, well, you go back to All Posts, My draft. You can click Quick Edit. And you can change the status here from Published to Pending Review or Draft. Let's change that back, hit Update, so now my post is again in the Draft status. If you wanna delete it, simply click Trash, and it's gonna move that post to the trash. Be aware this doesn't delete it immediately. Instead, it sends it to the Trash bin, and you can always access it here. You can restore it if you want, or you can delete it permanently. Now, what's all the talk about categories and tags? Well, if we open up Categories, you'll see the existing ones in this table, and we can also create new category here. Let's say, for example, creative, okay? We can also type in an alternative name here. This is the slug. This will be displayed in the URL right here. You can choose a parent category if you want. Or if it's a first level category, you would just leave it like this. Add New Category, and now I have a brand new one here. And then we can go to our posts. Let's select, for example, Hello world! And right here on the right side, under Tags, or under Categories, excuse me, we can choose what category this belongs to. And this is a great way for you to, well, categorize your posts. Maybe you have a blog that covers several different topics, right? So to make your life easier, and also to help your potential visitors finding content much easier, you would add these categories, right? Maybe you talk about food or traveling the world, so you would have categories for that. Restaurants, food, traveling, hotels, and so on, okay? So you would choose the category here and hit Update. So now if we go back to All Posts, you will see that under Categories, we now have creative. Clicking a category name in here, in this table, will actually show us all the posts that have that category. This can also be done by filtering the posts using this drop-down menu. So those are categories. What about tags? Well, tags are similar to categories. Let's add a few. We can also add description to them. All right, so now we created three tags, then we can go back to our posts and let's edit this. And here on the right under Tags, we can type, and it's gonna find the tag for us. So now if we go back to our post, we can say that if we have categories but also tags. And if we go back to the front end, we can see that the category and the tags are also displayed here on the front end under the metadata. So we have the author, publish date, category, tags, and comments. It's very simple. That's how you can publish a post and edit that post by adding categories and tags. Now, when publishing a post, there are a couple more options you need to be aware of. And you can find all of these options on this right side bar. First, you can make a post sticky, right? You can pin it to the top of the blog, regardless of the publish date. Even if it was published two years ago and there are still more recent posts, this will always be displayed on the top. Then you can edit the permalink. And this is how the post appears in the address bar right here. If I open it, see this? This is a permalink. It's a link directly to that post, and you can edit that here. Usually, I recommend you keep this by default, but you have the option to change it if you want. Now, posts can also display featured images. And a featured image is an image being displayed on the front end before or after the title. It really depends on the theme that you're using. And we'll actually see this in action when we get to the media site. You can also define an excerpt. And an excerpt is an optional piece of text that will be displayed right here as a preview to that post. So when you're watching or when you're opening up the Index page or the Blog page, and you see the list of posts, that list will not show the entire contents of each and every post. It's only gonna show a small portion of it. Well, that is called an excerpt. And then, finally, under Discussion, you have the option to allow comments, and also pingbacks and trackbacks. These are just mechanisms for linking to other pages on the web. And that's all there is to it. Now, let's move on to Pages. So Pages is actually very similar to Posts, except, we don't have categories, and we don't have tags for pages. All right, so this is a sample page that's provided by WordPress. You can put any kind of content that you want in here. In fact, any content that works in a post works in a page. There is really no difference for that. In terms of publishing, you have pretty much the same options as posts, except for the sticky part. So you cannot make a page sticky because it doesn't make sense. Pages are their own thing. They don't belong to a collection, right, like posts do. There isn't an archive of pages. Instead, there is an archive of posts. You can also change the permalink, just like I discussed previously. You can also add a featured image to a page. And under Discussion, you can choose whether or not to allow comments, but this is disabled by default. With that said, if you want, you can allow comments on pages, although it's not a very common practice. And here you can change the order of the pages. So it's very simple to add a new page. Simply click this link here, Add New, or this button. You'd give it a title, My page. You would give it the content. And then you change the options here and hit Publish. So now that page is live, and you can see it here by clicking this link. Now, it might not appear in the front end unless we have a menu. We'll get to that in a little bit. But if you wanna preview it, you can do that very easily from the back end or the admin interface. And that's it for posts and pages. Now, in this lesson, you saw me briefly adding some content in these, just to demonstrate their functionality. In reality, the editor, which is called Gutenberg, is a brilliant piece of software that we need to explore in more detail. So in the next lesson, you'll learn how to use Gutenberg, and also learn about its predecessor, which was retired in WordPress Version 5. See you there.

Back to the top