Forums

How do I eliminate Page Title ? (3 posts)

  1. rvblog
    Member
    Posted 4 years ago #

    Using WP 1.5 Jan-11-05

    I want to eliminate the title name "Page" that appears on top of my list of pages in the sidebar :

    Page <---- want to remove this title
    example-page1
    example-page2
    example-page3
    etc

    the code that creates this is:

    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>

    How do I rewrite it so that I only get a list of pages without the 'Page" heading on top

    I know that when you display categories this code:

    <?php wp_list_cats(); ?>

    displays a list of categories under the category group name

    while this code:

    <?php list_cats(); ?>

    displays only the categories and no group name above.

    Under the same thought process, is there a similar page code that leaves out the title ??

    Something like this:

    `<?php list_pages(); ?>

    thanks

  2. mdawaffe
    Member
    Posted 4 years ago #

    Try <?php wp_list_pages('title_li= ' ); ?>

    But note: http://wordpress.org/support/topic.php?id=20865

  3. rvblog
    Member
    Posted 4 years ago #

    Thanks, it worked fine.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.