• Hello

    I think this is probably a simple problem but it’s got me vexed. I want to show the home link in my sidebar menu so I altered this: <?php wp_list_pages('title_li='); ?>

    to this: <?php wp_list_pages('show_home=1&title_li='); ?>

    It’s not working (http://www.unisonmanchester.org). Perhaps I should be using the other list pages code but that doesn’t include the
    which is how my sidebar works.

    Can you help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • <ul>
     <li>Home</li>
     <?php wp_list_pages('title_li='); ?>
    </ul>

    IF you use WP 3.0 use wp_nav_menu() functions

    Thread Starter MsCrow

    (@mscrow)

    Hmm, I added that but it doesn’t work (thanks for responding). This is the full code of that section in sidebar.php

    <li>
    <h2><?=__('Pages')?></h2>
    <ul>
    <li>Home</li>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    </li>
    <li>
    <h2><?=__('Pages')?></h2>
    <ul>
    <li><a href="<php bloginfo('home')?>/">Home</a></li>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    </li>

    Try it now.

    Thread Starter MsCrow

    (@mscrow)

    Thanks for replying again.

    It’s just not working. I have added the custom menu widget (which was acting up yesterday so I hadn’t used it) which I have a ‘home’ link on. Below, I have left the ‘pages’ widget which isn’t showing ‘home’ despite your sensible mod.

    *scratches head*

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Show home’ is closed to new replies.