Continuing with the WordPress development course...

Blog feed page

Single post blog page

Today I worked on setting up the blog feed page and single blog page. We created a Home and Blog page in the WordPress dashboard and changed the settings so that the Home page we have been looking at is the home page according to WordPress. By default, WP shows the latest blog posts in a feed.

A new file had to be created so that we have a home and a blog home. The code on index.php moved to front-page.php and the blog home page code replaced it.

Some of the work that went into setting up the blog feed was:

  • Dynamically displaying author, date, and category for a post
  • Reusing the header banner for index.php and single.php
  • adding pagination and testing it by changing the number of posts to display per page

Links to work:

Resources I used today:

Social posts: