6 replies
  • |
Please forgive my very basic and limited technical word usage and know-how. Here goes:

I log into my wordpress website. Set up a page, change the permalink, and then hit preview. All looks good. Hit page update.

Open second tab and manually type in URL (ex. mysite.com/lookatthispage) and all works fine.

Logout of my wordpress website and then manually type in URL again - I get a 404 error.

Only when I'm logged into the website does it work. I have no idea what I did or why it's working that way.

Installed the date-exclusion and inline page post plugins but did not update on that particular page.

Hopefully I explained enough that someone might be able to assist.

Very much appreciated.

#issue #wordpress
  • Profile picture of the author tajimd
    That happens only when you change the date of your post so that the post gets published in future.

    Try changing the date of the post to past and you should be able to see the post after logging out.

    {{ DiscussionBoard.errors[2036880].message }}
  • Profile picture of the author Teresa Coppes
    The page was made today. I did some more digging and it appears that when I made the page private that it didn't show up except when logged on.

    I think I found the solution of using the exclude feature but I have no idea where to find this code as nothing in the edit feature looks like this (coffee desk theme if that helps):

    <?php wp_list_pages('exclude=17,38' ); ?>
    {{ DiscussionBoard.errors[2036892].message }}
  • Profile picture of the author tajimd
    If you want to exclude the page from showing up on your Navigation bar then.

    Open Header.php (Coffee desk theme)

    Go to Line Number 38

    You will find the code

    <?php wp_list_pages('title_li=&depth=1'); ?>

    just add &exculde=#

    where # is the id of the page you want to exclude.

    Hope that helps.
    {{ DiscussionBoard.errors[2036903].message }}
  • Profile picture of the author Teresa Coppes
    I greatly appreciate your help. I did find line 38 however when I include the page # I would like exclude it still gives me a 404 error when not logged in.

    This is what I typed in:

    <?php wp_list_pages('title_li=&depth=1 &exclude=41'); ?>


    I think I got it finally working.

    Once again - a huge thank you for helping!!
    {{ DiscussionBoard.errors[2036944].message }}
  • Profile picture of the author tajimd
    You said that the post was private so you cant see it if you are not logged in and it will give 404 error even if you type its URL directly. If you want it to be hidden but still be able to access it using direct URL then try giving it a password that way, the post can be accessed without logging in but content can be seen only when you enter the password.

    Setting your posts – or entire blog – to private WordPress.tv
    {{ DiscussionBoard.errors[2038224].message }}
  • Profile picture of the author VegasGreg
    If your post/page is set to "private" you will only see it if logged in.

    Make it public and your troubles will go away.

    Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...

    {{ DiscussionBoard.errors[2039140].message }}

Trending Topics