WordPress.org

Forums

[resolved] Two different pages with wordpress loop (4 posts)

  1. jetlej
    Member
    Posted 5 years ago #

    My front page shows the 4 most recent articles and also feeds from a forum and a wiki that I have on the site. I want another page that just shows the blog articles (all of them). I tried using a template with the wordpress loop on a "New Page" but it doesn't seem to work. Also tried setting my post page (under settings >> reading) to that page, but it just makes that page look like my home.php.

  2. s_ha_dum
    Member
    Posted 5 years ago #

    How did you set this up? Did you modify index.php to get your front page working like it is or did you create a new template?

    The thing to do would be to:

    1. Copy your theme's index.php to front.php (or something)
    2. Edit front.php to do what you want--ie., show the 4 articles and the feeds
    3. Go to wp-admin->Pages->Add New and create a 'Front' Page.
    4. Go to Settings->Reading and select the newly created 'Front' page as the 'Front page'
    5. The original unedited index page should now show the blog posts like normal.
  3. jetlej
    Member
    Posted 5 years ago #

    That worked perfectly, thank you

  4. s_ha_dum
    Member
    Posted 5 years ago #

    It worked so I imagine you figured this out but for those coming later, my step 3) should read "Go to wp-admin->Pages->Add New and create a 'Front' Page using front.php as the Template."

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags