[resolved] wp_list_pages not working (2 posts)

  1. kove
    Posted 6 years ago #

    I've been trying a lot to get the function wp_list_pages() work, whit no results.

    If I write a simple page, with this text in the html edit view:

    bla bla bla bla
     <?php wp_list_pages(); ?>

    I see no results at all.

    but If I write a random commented piece of code before, like this:

    bla bla bla
    <!-- <a href=aaa>aaa</a>
    <?php wp_list_pages(); ?>

    it works, but the layout becomes a bit messed up.

    I'm using wordpress 2.6.3 running on xampp ( last version ).

    Can someone pls help me and try to explain this?

  2. kove
    Posted 6 years ago #

    solved, the explanation was: I cant fruiting put the wp_list_pages() inside any page, it must be putted in a template file.

    Here there is a nice explanation on how to do that:

    Hope can help somene else :)

Topic Closed

This topic has been closed to new replies.

About this Topic