1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

General wordpress question

Discussion in 'Blogging' started by dannym954, Jan 13, 2012.

  1. dannym954

    dannym954 Regular Member

    Joined:
    Jan 7, 2012
    Messages:
    375
    Likes Received:
    150
    Gender:
    Male
    Occupation:
    PrintPit Managing Director
    Location:
    U.K
    Home Page:
    I've been trying to make my homepage a static page on my wordpress site so that i can keep my premium content hidden as the way my premium content works is by posting new "content" in blog posts and putting them in the premium category and then the "premium content" button links to the category archive which has a CPA offer on it.

    I know how to change my homepage to a static page (Welcome to <sitename>) which i have already done but now on my navigation bar there is the "home" button but also "Welcome to <sitename>" button. I thought i could sort the problem by making the "welcome to <sitename>" page private and i thought it was working until i logged out and realised that now my homepage just has a sorry not found message.

    Is there any way to hide the button for the "welcome to <sitename>" page on my navigation bar?

    Thanks!
     
  2. arpitagarwal82

    arpitagarwal82 Power Member

    Joined:
    Feb 20, 2008
    Messages:
    709
    Likes Received:
    456
    Location:
    Localhost
    Replace
    PHP:
    <?php wp_list_pages();?>
    With

    PHP:
    <?php wp_list_pages('exclude=12,58' ); ?>

    Replace 12, 58 etc with the page id you want to hide.
     
    • Thanks Thanks x 1
  3. dannym954

    dannym954 Regular Member

    Joined:
    Jan 7, 2012
    Messages:
    375
    Likes Received:
    150
    Gender:
    Male
    Occupation:
    PrintPit Managing Director
    Location:
    U.K
    Home Page:
    Thankyou very much!
     
  4. arpitagarwal82

    arpitagarwal82 Power Member

    Joined:
    Feb 20, 2008
    Messages:
    709
    Likes Received:
    456
    Location:
    Localhost
    • Thanks Thanks x 1
  5. dannym954

    dannym954 Regular Member

    Joined:
    Jan 7, 2012
    Messages:
    375
    Likes Received:
    150
    Gender:
    Male
    Occupation:
    PrintPit Managing Director
    Location:
    U.K
    Home Page:
    Rep given, thanks for putting some time in to helping.