Forums

Permalink to page only viewable when logged in (10 posts)

  1. moose123
    Member
    Posted 4 years ago #

    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.

  2. sherijen1
    Member
    Posted 4 years ago #

    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.

  3. sherijen1
    Member
    Posted 4 years ago #

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

  4. iridiax
    Member
    Posted 4 years ago #

    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?

  5. sherijen1
    Member
    Posted 4 years ago #

    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.

  6. iridiax
    Member
    Posted 4 years ago #

    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.

    http://codex.wordpress.org/wp_list_pages#Exclude_Pages_from_List

  7. sherijen1
    Member
    Posted 4 years ago #

    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='); ?>

  8. moose123
    Member
    Posted 4 years ago #

    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.

  9. Anonymous
    Unregistered
    Posted 3 years ago #

    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>
  10. kpdesign
    Member
    Posted 3 years ago #

    Kate -

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

Topic Closed

This topic has been closed to new replies.

About this Topic