2

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?

1

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

  • What would the url be? How would I navigate to it? – Wilhelm Jul 26 '15 at 0:15
  • Set the template to a page of your choice. And the url would be www.sitename.com/pagename – yobddigi Jul 26 '15 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.