• Resolved oh_hello

    (@oh_hello)


    Hi All,

    This is a really simple problem that bugs me often, I just can’t seem to wrap my head around the correct solution.

    Very basic website, 5 Pages and a Blog. Homepage is a static page using the home.php template. 4 other pages are just standard WordPress Pages using page.php.

    Now let’s say I want to have a blog using standard WP Posts. It will have multiple categories.

    What do I link to in my menu that goes to a page listing all my blog posts?

    I know I can do ?cat=3 which will show all posts in a certain category, but I don’t want that because I want all of my categories to display.

    I know I can create a custom page template (eg, all-posts.php) and then query all my posts, but I feel as though I shouldn’t have to do that.

    I feel as though this can be achieved using archive.php or something else baked in to WP but I just can’t wrap my head around it. It’s really not a big deal to use a custom page template but I don’t want to if I don’t have to.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Howdy. You’re right that this isn’t a hard thing to do!

    Here’s a basic list of steps to take:

    1. Create 2 pages, one for the static home, the other for the blog
    2. Go to Settings > Reading. Pick the option for a Static Front Page and then assign the two pages you just created to the Front Page and Posts Page, respectively.
    3. As you can read about in the Template Hierarchy Codex Documentation, use front-page.php for your front page template and home.php for your Posts Page (aka “Blog”) template.

    That should do it!

    Thread Starter oh_hello

    (@oh_hello)

    Brilliant, that’s what I was looking to do. Just didn’t think of that, so simple. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Page listing all Posts without creating template’ is closed to new replies.