Ready to get started?Download WordPress


[resolved] Custom Template for News Page (6 posts)

  1. CullenJ
    Posted 4 years ago #


    I just started working with designing my own theme for a wordpress site and ran into a problem. My site isn't really a blog, so I just want to display the posts on a "News" page with its own custom template and everything else should use the main template.

    I made the template and it works fine, but when I set the "News" page as the Posts Page in Settings>>Reading on the Dashboard, it reverts back to the default template. How do I make it use my custom template?

    I'd appreciate your help on this.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    If you're going to use the News page as your main Posts' page, you need to edit the index.php template file.

  3. CullenJ
    Posted 4 years ago #

    I'm sorry, but I don't understand what you mean. Do you mean that the only way to do this is have a custom template for every other page and use the default template for the News page? Because if there's another way, I'd really rather the other way.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    No. If you have set up a static front page and have set the News page to be your Posts Page, the News page will use the index.php template file. Not any custom page template you might have created and assigned to it. The main Posts Page always uses index.php. This does not affect your other pages in any way. They do not use index.php - unless that's the only template file in your theme.

  5. CullenJ
    Posted 4 years ago #

    Thank you! That was what I was looking for.

  6. gSvoren
    Posted 3 years ago #

    I have a question,

    My customer wants to use WordPress (and is using WordPress) mainly as a CMS, he would like to posts "news" on a seperate Page (such as this: Home - Page - About - Page - News - Posts - Contact - Page)

    How would I accomplish this?
    Hoping for a reply! :)

Topic Closed

This topic has been closed to new replies.

About this Topic