• I wish to have a separate page template that functions like index.php where it would have access to the the WordPress loop. How to I achieve that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Why do you need that? It might be better if you describe in plain ENglish WHAT is it that you want to achieve and leave the HOW to the helpers…

    Thread Starter extrakun

    (@extrakun)

    Sorry if I was unclear with my intent.

    I wish to have different pages where posts from categories are displayed differently.

    1. One which is the usual style of index.php
    2. One which displays a list of child categories and at the same time display posts using thumbnails and just a short excerpt.

    Or rather, one is a blog-style, while the other is a CMS-style.

    I could achieve #2 with a static homepage – however, the question more or less remains – how do I obtain the WordPress with a static php-driven homepage so that I could generate news and etc.

    Thanks in advance!

    Aren’t Category_Templates doing exactly what you want to do with Pages instead?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Why do people always want to use Pages for the wrong uses?

    Sigh.

    Thread Starter extrakun

    (@extrakun)

    Thanks, that is exactly what I am looking for. Perhaps I should have phrased my question as “How can I have a PHP page that have the WordPress Loop”.

    As for the prevalent issue of why I would think of using a page template to achieve what I want, I guess it’s based on traditional method of building websites. Maybe including a link to the Template Hierarchy while explaining the WordPress Loop would help, something like “I wish to have a PHP page that has the WordPress loop”

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to I get the WordPress loop in a page template?’ is closed to new replies.