Treehouse: Grow your CSS skills. Land your dream job.

Posts to Page – WordPress

  • # December 27, 2011 at 8:42 pm

    I’m trying to create a page template in wordpress that will contain all of my blog posts. I found this which helps me out somewhat, however I’m running into difficulties when I’m trying to list all of my categories and not just one particular one.

    Anyone have any ideas on how I would do this?

    # December 27, 2011 at 8:56 pm

    I think this page would be more helpful:

    # December 27, 2011 at 10:28 pm

    You’ll need to create a custom template in your theme. Copy page.php and create a new file and change the name. Make sure to put this at the top of your new template:

    < ?php // Template Name: Your Name Here ?>

    Then modify the loop on that template to contain all posts using help from the query_posts function that Senff linked for you above.

    Once your loop is set, change the template on your page in the WordPress backend from ‘Default’ to your new custom template.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.