WordPress.org

Ready to get started?Download WordPress

Forums

problem with wp_list_pages (8 posts)

  1. reneeholiday
    Member
    Posted 6 years ago #

    I'm having problems with the PAGES navigation on http://www.21stcenturyparenting.com/

    The nav works from HOME. But once you go into the site (ex. http://www.21stcenturyparenting.com/2007/10/25/learn-more-about-natural-childbirth/ ) and click one of the PAGES links, it gives a 404 error.

    It seems to be looking for the page WITHIN the folder structure (ex. http://www.21stcenturyparenting.com/2007/10/25/learn-more-about-natural-childbirth/?page_id=2 )

    I think this is a problem wih the theme. How can I fix it?

    Thanks!
    renee

  2. moshu
    Member
    Posted 6 years ago #

    And what do you have in the two URI fields in Options > General?

  3. reneeholiday
    Member
    Posted 6 years ago #

    Do you mean URL? Both are set to http://www.21stcenturyparenting.com.

    the weird thing is, the links work on some other themes. (But I'm hooked on this theme.)

    thanks!
    renee

  4. moshu
    Member
    Posted 6 years ago #

    OK, next troubleshooting step: you paste your header.php file to
    http://wordpress.pastebin.ca
    and post back the URL.

  5. reneeholiday
    Member
    Posted 6 years ago #

  6. moshu
    Member
    Posted 6 years ago #

    Hmm.. I saw the theme is using its own function to call the Pages in the top menu. My first thought was there is something wrong with that code.
    So, I went and downloaded it, installed on a local WP - and it works correctly.

    It still might be related to the code how it calls the Pages, so I'd try to contact the theme author and describe the specifics of your server and setup.

    And I am asking once again: are you 100% sure you the "index.php" is NOT included in the two URI values in the Options? Those values can end only in directory names, never file names.

  7. reneeholiday
    Member
    Posted 6 years ago #

    Ok. I have been in contact with the theme author.

    But the problem was still not resolved.
    After some testing on another blog with the theme, I realized that maybe it had to do with the Permalink structure. (I had it set to "Date and name based".) So I put it back to default, and they work fine.

    Interesting...

    Now if there's a way to get this theme to play nicely with the pretty permalinks!

  8. AJKock
    Member
    Posted 6 years ago #

    I get the same issues with this particular theme and non with any other theme. It is adding the url from the main menu's to any sub category page's url, when you click on that link from a sub category page.

    So if I am on hello.com/peter/ and I want to click on the about page, it changes the url to hello.com/peter/about/ instead of going to hello.com/about/

Topic Closed

This topic has been closed to new replies.

About this Topic