How do I create an archive page for standard posts?

I’ve been tasked with creating a portfolio website for a client who also wants a blog.

What I’ve Done Thus Far:
I’ve created a custom post type to separate the portfolio work from the blog posts and created a WP_Query to display them on my front-page.php.

The Problem:
Now that my front-page.php displays my custom post type (and not my WordPress’ builtin posts), I’m not sure how to navigate to my blog archive. What template do I use to create said archive (i.e. index.php, home.php, archive.php, etc) and would I navigate to it?

2 Answers
2

Create a template with a WP_Query to get posts with post type “post” then create a page and assign that template to that page.

Templates:
https://codex.wordpress.org/Templates

Query by post type:
https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters

Leave a Comment