[urgent] Want help regarding Wordpress PHP

Discussion in 'PHP' started by sunilm87, Mar 6, 2009.

  1. #1
    hi there,
    i have designed a WP theme.
    The main page here is the index page which will show the recent posts and featured post in the main page apart from the sidebar. this is "index.php"

    I want to put another link where the posts are displayed normally as in other Wordpress main index page. For this i created a page to display all the posts. and name the page -- "posts.php".

    Now how to initiate this in Wordpress. i am in a fix..
     
    sunilm87, Mar 6, 2009 IP
  2. attitudenz

    attitudenz Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have created posts.php as a template you can apply it to a "page". So you could setup a page called "Posts" and apply that template - then link it into your navigation.
     
    attitudenz, Mar 7, 2009 IP
  3. sunilm87

    sunilm87 Peon

    Messages:
    402
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ah thanks attitudenz.. i created a template for that .. named it as allpost.php.. but it didnt work.. so i did the vice versa.. put the allpost code in the main index page which is the usual kubrick version... and added featured code in allpost.php template and made it home page.. it now wrks.. thanks for the idea of making a template
     
    sunilm87, Mar 7, 2009 IP