• Hi there,

    Here is what I want to do:

    Create a separate page to feature all posts that are in a specific category. I have done this before by simply using my archive pages.

    However, on this custom page I want to display my posts differently. i.e. in a more classic blog format as apposed to the portfolio style I have on the other pages.

    Is this possible?

    Thanks for all your help. I understand this is a little tricky…

Viewing 5 replies - 16 through 20 (of 20 total)
  • Make a copy of your theme’s page.php template file and use that as your starting point. Replace it’s Loop (or it’s call to another template file) with the Loop in the example and you should be on your way. Finally, check the HTML markup in the example Loop and modify it so that it replicates the markup in (say) your theme’s index.php Loop.

    Thread Starter homelessmindtheory

    (@homelessmindtheory)

    Ok we have fantastic progress, 🙂 I have changed my category slugs and the page SHOULD now be displaying the posts form those categories. however it seems to be restricted to just one post..is there a query i have to include/take out somewhere?

    p.s. Do you want to see the current custom page.php i am working with?

    Thread Starter homelessmindtheory

    (@homelessmindtheory)

    esmi, just to let you know where I am at…

    http://homelessminds.com/?page_id=3051

    The page is featuring all my posts from my two categories correctly. However the only issue is that all the posts just show up as the title and permalink, with the exception of the one at the bottom which is displayed perfectly. (the full post with all of its content). :/

    I’m sure its a query thing..

    If you could get back to me when you can with a suggestion that would be great. Thanks so much for your help you guys awesome. So nearly there!

    Drop a copy of the file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.

    Thread Starter homelessmindtheory

    (@homelessmindtheory)

    Ok,

    here is my page template as it stands:

    http://pastebin.com/XZ8Zumuu

    here is my page:

    http://homelessminds.com/?page_id=3051

    As you can see, it is retrieving the two categories I have entered correctly, however only the first post (at the bottom of the page) is displaying all the content. I want all the other posts to be displayed fully like the one at the bottom.

    Please help, thanks a million…

Viewing 5 replies - 16 through 20 (of 20 total)

The topic ‘Custom Page Loop’ is closed to new replies.