Wordpress page

Discussion in 'General Chat' started by terminator69, Oct 15, 2008.

  1. #1
    How can i make a wordpress page without a link being added to the home page?
     
    terminator69, Oct 15, 2008 IP
  2. pratik

    pratik Notable Member

    Messages:
    2,308
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #2
    I guess you will have to play with your theme... to hide the link on the homepage... :)
     
    pratik, Oct 15, 2008 IP
  3. WebSolutions86

    WebSolutions86 Peon

    Messages:
    434
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In ur theme file, find this :

    
    <?php wp_list_pages('' ); ?>
    
    Code (markup):
    then just exclude the page u wanna remove with its id like this:

    
    <?php wp_list_pages('exclude=10' ); ?>
    
    Code (markup):
    u can see the id in manage > pages
     
    WebSolutions86, Oct 15, 2008 IP
  4. pratik

    pratik Notable Member

    Messages:
    2,308
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #4
    This is cool... I never knw this...

    thanks for sharing... :)
     
    pratik, Oct 15, 2008 IP
  5. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,482
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #5
    Ok and if we want to remove multiple pages from homepage then we need to add like this 'exclude=2','exclude=5' or like this 'exclude=2,5' in code :confused:

    DON.
     
    deluxdon, Oct 15, 2008 IP
  6. terminator69

    terminator69 Notable Member

    Messages:
    4,872
    Likes Received:
    260
    Best Answers:
    0
    Trophy Points:
    230
    #6
    Thanks, it worked.
     
    terminator69, Oct 15, 2008 IP
  7. musichangout.com

    musichangout.com Well-Known Member

    Messages:
    4,195
    Likes Received:
    182
    Best Answers:
    0
    Trophy Points:
    103
    #7
    Let me try for my blog now.
     
    musichangout.com, Oct 16, 2008 IP
  8. michaelschofield

    michaelschofield Banned

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    well the thread helped me 2..
    thankss a ton
     
    michaelschofield, Oct 16, 2008 IP
  9. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #9
    this should work...
    OR keep the additional pages as a subpage of one page.. so it will not appear :D
     
    MeetHere, Oct 16, 2008 IP
  10. WebSolutions86

    WebSolutions86 Peon

    Messages:
    434
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #10
    To exclude multiple pages, use this code

    
    <?php wp_list_pages('exclude=10,15,17,30,16' ); ?>
    
    Code (markup):
    :)
     
    WebSolutions86, Oct 16, 2008 IP