• I have a site, https://www.spanskfilmforum.dk/, with this code in sidebar.php:

    <ul>
    <li class="page_item"><a href="/">Blog</a></li>
    <li class="page_item"><a href="/2008/08/24/velkommen-bienvenido/">Velkommen - Bienvenido</a></li>
    <?php wp_list_pages('title_li='); ?>
    <li><a href="/wp-admin/" target="_blank">admin</a>
    </ul>

    It used to work, but now all of a sudden it doesn’t – all I see is the hardcoded links, nothing is genereted by the wp_list_pages function.

    I have another site on the same server which uses identical code, and there it works.

    What could be wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Pokersut,

    It sounds as though the code has changed, by itself, from a php function into hard coded html. If you are looking at the code from a browser source then you will not see the php just the result of what the php has done.

    Otherwise the menu appears to be working correctly.

    Thread Starter pokersut

    (@pokersut)

    I guess I didn’t explain myself clearly: The links that are shown (“Blog” , “Velkommen – Bienvenido” and “admin”) are all links that I have hardcoded into sidebar.php.

    What I wanted – and what used to work – was to have all my WordPress pages listed after “Velkommen” and above “admin”, thus I have put the wp_list_pages function in, but it doesn’t generate any content.

    I have a handful of WordPress pages that should show up there (e.g. https://www.spanskfilmforum.dk/kontakt/), but they don’t – somehow the wp_list_pages cannot find them …?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_pages not showing anything’ is closed to new replies.