Support » Fixing WordPress » Linking To Pages From Sidebar?

  • Resolved willamato



    My site is showing a list of my pages, but they don’t link to the pages listed.

    This is the code I have in my sidebar:

    <li class="pagelink">
    			<ul class="pagelink">
    				<li><a href="<?php echo get_settings('home'); ?>/">Home</a></li>
    wp_list_pages('sort_column=menu_order'); ?>

    and here is the site:

    I’d also like to get rid of the word “pages” above the pages, if possible.

    Any help is much appreciated!


Viewing 3 replies - 1 through 3 (of 3 total)
  • If you are using the template tag, wp_list_pages, then you should be able to use the paramter ‘title_li=’ (passing null as the title) to suppress that title.


    I do have that bit of code, and it removed the title from the first, home page link.

    But it still recurs above the list of pages, and the page links dont link to the pages, but link to the first post instead.

    Im really a coding and WP novice…

    I tried “hacking” together the sidebar.php code, and it only seemed to make matters worse.

    Having the listed pages link to the pages seems like a pretty standard thing…but I dont know what Im nissing to make it happen.

    This line of code did the trick (listed the pages in order, removed the “pages” tile, and now — for some reason — the links work, too)

    <?php wp_list_pages('sort_column=menu_order&title_li'); ?>

    Thanks, Mike.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Linking To Pages From Sidebar?’ is closed to new replies.