• Resolved mzimmers

    (@mzimmers)


    Hi –

    A few months ago, I wrote a page that was to display posts. I recall that it took some special treatment to enable this, but I can’t remember what, nor can I find mention of it in the docs. Also, as a side effect of doing this, wp_list_pages ceased working on this particular page.

    Can someone tell me how to “undo” whatever I did so that wp_list_pages will “find” this page again? Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • For someone to help you better, could you please…
    (1) post the address of your website.
    (2) post the specific address of the page that wp_list_pages is not finding.
    (3) mention how you are using wp_list_pages. Is this just the “Pages” widget? Inside a theme (and which theme)? Or something custom? If you’re using a theme or some custom usage of wp_list_pages, please post an excerpt of your code.

    If wp_list_pages() is being used with arguments, e.g., wp_list_pages('depth=1'), that could be limiting the output. But, without seeing your particular site, all I can really do is guess at what the cause of the issue could be.

    Thread Starter mzimmers

    (@mzimmers)

    Oops…sorry.

    1) website is scopedin.com
    2) specific page that isn’t working right is 77. this page
    3) I’m using wp_list_pages (inside cutline theme) for a sort of “bread crumbs” usage in the left sidebar. I use it to generate page titles which I then echo into the sidebar.

    And…the code is working for all pages except this one. I seem to remember having done something special with this page to make it behave the way it is, but I can’t remember what.

    Thanks.

    Thread Starter mzimmers

    (@mzimmers)

    Let me ask the question differently: why is it that, from my main page, all of the sub-pages can successfully be selected from the horizontal nav bar in the header, *except for* the “What’s New” page? What did I do to this page to make it special?

    Thanks.

    Let me ask the question differently: why is it that, from my main page, all of the sub-pages can successfully be selected from the horizontal nav bar in the header, *except for* the “What’s New” page? What did I do to this page to make it special?

    Not sure…
    -Is the page “published” and not a “draft?”
    -Are you using a page template for the particular page? If there’s some sort of special query being used, that might mess up other things.

    If you are using a page template, you could paste the contents of the template, here, if it’s not too long. Or, better yet, there’s wordpress.pastebin.ca.

    Also, pasting the code you’re using for the wp_list_pages will help as well.

    You do seem to be using a somewhat non-standard structure for your site, which adds to the degree of difficulty for finding a solution to your problem.

    Thread Starter mzimmers

    (@mzimmers)

    The page is published and using the default template.

    Here’s the code that calls out the pages for the navigation bar:

    <div id="navmenu">
        	<ul>
            	<?php wp_list_pages('title_li=&include=12,8,9,10,11,2,13,77&sort_column=menu_order') ?>
     		</ul>
    	</div>

    As far as my structure being non-standard, well, it is a bit page-centric. I did this because I couldn’t get posts to organize heirarchically. But the more I think about this problem, maybe wp_list_pages isn’t the culprit here. After all, it successfully puts page 77 into the navigation bar, and does attempt to go to the page. It’s just not finding it. So…I’ll ask again: is it possible that I did something to the setting of that particular page that renders its contents inaccessible to wordpress? Something I might have done in order to all posts (not pages) within it?

    Thread Starter mzimmers

    (@mzimmers)

    It just occurred to me that I failed to mention that I’m getting a “file not found” error, and the text

    “Sorry, but you are looking for something that isn’t here.”

    When I try to access this page.

    Perhaps I should delete the page and re-create it, but…that doesn’t seem to be within the spirit of the hunt for the bug.

    Thread Starter mzimmers

    (@mzimmers)

    OK…I decided to wipe out the offending file and re-generate it. All seems OK now, so I’ll close this one out. I still wish I could remember whatever modification it was that I made to the page to get it to display posts in the body, though.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wp_list_pages missing a page’ is closed to new replies.