Support » Fixing WordPress » wp_list_pages() behaving randomly

  • Resolved kove


    hi all,
    I have this quite strange bug.
    If I insert in a page the <?php wp_list_pages(); ?> function I dont get any result, BUT if I insert a random commented piece of code before it, it works..!

    for example, with this I can see the listing:
    <!-- <a href="www.esa.aa">aa</a> -->
    <?php wp_list_pages(); ?>

    But with a simple
    <?php wp_list_pages(); ?>
    I cant see anything

    this problem for what I know happened after installing this plugin:
    made to hide subcategories in the menu.

    The strange thing is if I put phpinfo() in the same page it doesnt work or show me the output of the old wp_list_pages()!

    how can I make things work normally??
    Thanks for any answer…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I’m the author of the plugin you’re having trouble with. I was hoping you could post the version of WordPress and theme you’re using. I want to see if I can duplicate the bug, and hopefully get this fixed for you.

    Garrett Murphey

    hi, nice to meet you 🙂
    wordpress version is 2.5.1
    page link manager version is 0.3
    Hope can help

    sorry I forgot the template.
    the template is the default wordpress one
    Let me know any news

    hmmm… any news?
    Any tips on how to make things work as before? at the moment if I try to uninstall the plugin wordpress keep behaving quiete randomly…

    update: just reinstalled wordpress and xampp from scratch without the plugin and this bug STILL HAPPENDS.

    So, is not the plugin but something else.

    wordpress version is 2.6.3 , xampp win 32 1.6.8 ( last ones at the moment)

    this is the code wich generates NO OUTPUT ( html mode):

    test1.1 test1.1 test1.1 test1.1 test1.1
    <?php wp_list_pages(); ?>

    This is the code whic generates a (nearly) correct output:

    <!-- <a href="www.esa.aa">aa</a> -->
    <?php wp_list_pages(); ?>

    I say nearly because the default layout get messed up with the correct output.

    I just disabled ALL my plugins and this still happends. Someone have any tips ? T_T

    ok, the problema was:
    I cant use wp_list_pages() in a page, but must be in a template file!!!

    here is a fine explanation of how to do that:

    problema solved
    thank you anyway

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp_list_pages() behaving randomly’ is closed to new replies.