[closed] Show home page in sidebar links (2 posts)

  1. digne
    Posted 6 years ago #

    I messed up my original post so I'm trying this again:

    Can someone help me apply wp_page_menu ( http://codex.wordpress.org/Template_Tags/wp_page_menu ) to my sidebar links?

    I know I need to replace wp_list_pages with wp_page_menu, and set "show home" to "true." But I can't figure out how. I'm still fairly new to php.

    // for sidebar widgets
    if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( ) )
        // search bar
        sp_sidebar_open( "searchbar", "<h2>Search</h2>" );
        include (TEMPLATEPATH . '/searchform.php');
        sp_sidebar_close( );
        // pages
        sp_sidebar_open( "pages", "<h2>Pages</h2>" );
            echo '<ul>';
            echo '</ul>';
        sp_sidebar_close( );
    } // sidebar widgets

    Someone earlier suggested changing the line to:

    But that didn't work probably due to my earlier errors

    my page: http://sheynawatkins.com/wordpress/
    (uses WordPress 2.3.3)

    The page I will apply all this to: http://www.elizabethhanbury.com/
    (uses WordPress 2.7)

  2. Samuel B

    Posted 6 years ago #

    stick with the original thread - we get it

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.