• Hello,

    I just upgraded my WP site to 2.5.1. For some reason, one – and only one – of my static pages is only viewable when I am logged in. Otherwise it throws a 404 error. This page has been published for a long time and none of my other pages are doing this. I have not done anything to my permalinks settings.

    Thanks for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am having the same problem. If I am logged in I can view permalinks, otherwise I get a 404 error as well. It happened after the upgrade. Any fix, my blog is useless without the links.

    To clarify, it is all of my permalinks on all of my pages. Can’t view unless logged in.

    Is “Keep this page private” selected on the edit page for the affected page? If so, deselect it.

    Is the page still showing as published on its edit page, or is it showing as Publish Status Unpublished?

    It shows published. I don’t want it to show up on my navigation bar though, that’s why I had it private. The link is however working when it is not private. I can see it (not the menu nav version, the link I made) when I am not logged in.

    Adjust your template code to keep it off of your navigation bar. The “Keep this page private” option is the explanation to your page problem.

    https://codex.www.ads-software.com/wp_list_pages#Exclude_Pages_from_List

    Thanks for the idea. I left the page published (not private) and used the exclude code below to remove it from my main nav. Putting the ID of the page where the (4) ID is in the line of code. It worked.
    Not sure if this is the best way but it is working now when I am not logged in.
    <?php wp_list_pages(‘exclude=4&depth=1&sort_column=menu_order&title_li=’); ?>

    Thread Starter moose123

    (@moose123)

    Is “Keep this page private” selected on the edit page for the affected page? If so, deselect it.

    Is the page still showing as published on its edit page, or is it showing as Publish Status Unpublished?

    Nope, the page is published. What I did was just copy the content from that one page and pasted into a new page, which worked just fine. Still don’t know what happened, but all is good. Thanks.

    Sorry for mining this thread, but I am having the same problem. Rather than post a new post, I have a question:

    Where do I put the code? Do I click the tab that says “code” instead of “visual” and paste it there in each individual page?

    <ul>
    <?php
    wp_list_pages('exclude=17,38' ); ?>
    </ul>

    Kate –

    You include that code in your template file where the wp_list_pages() code is currently.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Permalink to page only viewable when logged in’ is closed to new replies.