Problems with private pages in Wordpress

Discussion in 'WordPress' started by Cypherus, Apr 17, 2008.

  1. #1
    Hi there,

    I just made a new site where I have some private pages in the menu which worked perfectly yesterday, but today when I logged into my site to continue my work, the privat pages didnt work and all I get is this message:


    Parse error: syntax error, unexpected T_ENDIF in /home/.lili/reisedilla/alt-om-brasil.com/wp-content/themes/talian-10/404.php on line 11

    Anyone have any idea of what might be wrong? Its only affecting the sites Ive marked as private..
     
    Cypherus, Apr 17, 2008 IP
  2. Cypherus

    Cypherus Peon

    Messages:
    1,551
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Oh, I just realised that I have to be logged in to see the private pages. So that leads me to my next questions:

    Is it possible to make a public page that wont be listed in the menu?
     
    Cypherus, Apr 17, 2008 IP
  3. od3n

    od3n Active Member

    Messages:
    715
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #3
    you can just make the page unpublished and give the link somewhere. as long people know the link, they can view it.

    another method is by using exclude tag on your menu listing. Get your page id at put them there.

    <?php wp_list_pages('depth=2&title_li=<h2>Pages</h2>&exclude=7,8,9'); ?>
    Code (markup):
     
    od3n, Apr 18, 2008 IP