Support » Fixing WordPress » How to display posts on a page other than the main page?

  • thinsoldier


    Lets say my site is

    I would like: shows a hand coded welcome message, a photo, and a list of categories (no articles displayed on the home page at all (for the moment) )

    and lists all the articles (behaves like the default wordpress homepage)

    So far I’ve found that adding a home.php file to my theme overrides the index.php and lets me do the first bit of what I want. But I haven’t found how to get the behaviour of index.php to happen when I visit

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    You want a Static Home Page:

    You want to make a page TEMPLATE with your old index.php stuff in there (call it like news.php)

    Then make a PAGE called news and point that to the template 🙂



    Thanks, that worked perfectly.



    Sorry, it did not work perfectly after all.

    I created a page in the system named News.
    I created a template by duplicating the default template’s index.php and renaming it news.php
    I added the comment <? //Template Name: NewsRoot ?> to news.php
    I edited the News Page in the sytem.
    The template “NewsRoot” is now available as an option.
    I set the News Page to use the NewsRoot template.

    Now when I go to I no longer get the 404.
    However, no blog posts show up within the main loop of the news.php template file. Any other markup in the file renders as expected but there’s nothing showing up within the main loop. Why might that be?




    Part 2 of the solution:

    Set a Static “Home” Page (Front Page)

    (video at the bottom of the page)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to display posts on a page other than the main page?’ is closed to new replies.