Template Assignment in WordPress

Discussion in 'WordPress' started by mkb24, Jan 20, 2011.

  1. #1
    Hi,

    I am using WordPress Version 3.0.4.

    Under Settings > Reading - I have selected
    a) Static home page option
    b) Front page as Home
    c) Posts Page as Blog

    For all my pages i have assigned the default template except for "Blog" page.

    For the "Blog" page, I have assigned a different template from the drop down list which appears on the right hand side.

    Now, all my Posts will appear on "Blog" page.

    But, "Blog" page is not using the template which was assigned to it.

    instead, it is using the default template.

    My Problem is : How do i assign a different template to the "Blog" page, which displays all my POSTS.

    Please can some one help me where I am going wrong.

    Thanks in advance
     
    mkb24, Jan 20, 2011 IP
  2. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Go to your wp-admin>pages>edit

    Edit the "BLOG" page, and on the templates choose the template file you created :)
     
    Yuuko008, Jan 20, 2011 IP
  3. mkb24

    mkb24 Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have already done that but still the Blog Page is taking the Default template.........
     
    mkb24, Jan 20, 2011 IP
  4. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
    #4
    Well it's best if you make your own index.php then create your own blog.php that will query the posts. In this way you won't need to change the reading settings of your wordpress site.
     
    Yuuko008, Jan 20, 2011 IP
  5. mkb24

    mkb24 Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for replying..

    Please may I know what different code spec do i write in blog.php and index.php
     
    mkb24, Jan 20, 2011 IP