WordPress.org

Ready to get started?Download WordPress

Forums

Different template per page (10 posts)

  1. herbshirt
    Member
    Posted 6 years ago #

    Here: http://codex.wordpress.org/Pages

    It says:
    WordPress can be configured to use different Page Templates for different Pages.

    But I can't find that option? Does it still exist in 2.5?

  2. Chris_K
    Member
    Posted 6 years ago #

    Sure.

    While editing a Page, scroll down a bit and expand the "Page Template" section. This is below the Page editor.

  3. herbshirt
    Member
    Posted 6 years ago #

    Under advanced fields I have:
    Custom Fields,
    Comments Pings
    Password Protect
    Page parent
    Page order...

    Thats it. I can't see the Template option.

  4. NaturalEnquirer
    Member
    Posted 6 years ago #

    I also have the exact same issue. I've tried different themes just in case that was an issue.

  5. Chris_K
    Member
    Posted 6 years ago #

    Mine is right after "Page Parent".

    Is it possible that the theme you're using doesn't have any Page templates created? By default, Pages will use index.php or page.php if no other templates exist.

    Template_Hierarchy (see the Pages section)

  6. asrai
    Member
    Posted 6 years ago #

    NOTE: In order to access the Page Template selector, there must be at least one custom Page Template available in the active theme (see Creating your own Page Templates below to learn how to create one).

    http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates

    I haven't tried it but it looks like you just need to create a page.php clone, rename it then put this code:

    <?php
    /*
    Template Name: Any-Page-Name
    */
    ?>

    I'll try if this would work for my blog..cause so far I'm using this link to create different looks for my pages
    http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page

  7. Roger Theriault
    Member
    Posted 6 years ago #

    @asrai, that's it. Does a real good job for special pages.

  8. NaturalEnquirer
    Member
    Posted 6 years ago #

    For me, it was a simple solution. I just had to log out and log back in before new page templates showed up.

  9. vuhoops
    Member
    Posted 5 years ago #

    @asrai, THANK YOU. That just helped me so much!

  10. shagdirty
    Member
    Posted 5 years ago #

    I just had this issue however it was because I had renamed style.css. Must be css controlling something about that. possibly visibility? Didn't do any more research into it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.