Basics: How WordPress handles blog posts and archives
This article covers the basics of how a blog works in WordPress.
Basic concepts and definitions
WordPress was originally created to make it easy to organize blog posts on a website. A blog in WordPress consists of two types of pages:
- Posts, which contain the blog content topics. Each Post produces a separate blog post.
- Index and archive pages, which WordPress generates to organize and display lists of Posts.
Note: In the WordPress admin panel, Posts are located in a different section from Pages, so we'll refer to those formal categories by using a capital P.
Posts have the following properties by default:
- WordPress organizes Posts in reverse chronological order.
- You can assign categories and tags to Posts.
- There are standard sidebar widgets that display Post metadata (date, categories, tags, and so on) to enable users to filter the Posts in various ways.
How WordPress works with Posts by default
Everything is customizable, but this is how WordPress handles Posts with a fresh installation.
1. Your front page is an index of your Posts
- The index on your home is generated by WordPress. It doesn't exist as a Post or Page you can open for editing.
- The index is a list of your most recent Posts in reverse chronological order, either excerpted or in full form, with links to the individual posts.
- You might or might not see a sidebar with widgets related to Posts, such as categories and tags for the blog, or previous posts organized by date. Whether the sidebar appears by default depends on your theme.
- You can change the default index page to appear on a static page other than your home page.
Here's a screenshot of a prototypical index page. Each Post is listed with its title, author, date, a content excerpt, and a featured image. The sidebar on the right contains common Post metadata.
2. Lists of Posts filtered by category, tag, date, author, etc. are called archive pages
In the previous screenshot, if you clicked a category or date in the sidebar, you'd see an archive page, which lists only the Post pages that fall under that category or date. The archive page looks like the index page, except it's filtered in some way, such as by WordPress category, tag, date, or author. Archive pages are also generated by WordPress and don't exist as a Page or Post that can be edited.
Here's an example of an archive page that's displaying the Posts for a particular month..
3. Each Post has its own page
Each blog post has its own single Post page with the title, the author and date (unless hidden), the featured image if there is one, and the full content of the post. For example, the following screenshot shows Author and Date under the title, and other metadata in the sidebar on the right. There may be other features, such as Previous and Next buttons to navigate the Posts.
Note: In the Beaver Builder Theme, you configure the sidebars, metadata, and other aspects of how these Post and archive pages are displayed in Appearance > Customize > Content.
4. Index and archive pages display the featured image and text excerpt from Posts, not other images
When you create a Post, you have the option to set a Featured Image. This Featured Image is displayed along with the title and usually a content excerpt on the generated index and archive pages. If you add other media (such as images or videos) in the content area of your Post (whether the Post page used Page Builder or not), they will not be displayed on the index or archive page. For example, here's that same single Post with an image embedded into the content area:
That embedded image does not show up on the archive page:
Note: Content from shortcodes inserted into non-Page Builder Posts will also not appear in index and archive summaries.