WordPress.org

Ready to get started?Download WordPress

Forums

Format wp_list_pages and wp_page_menu without <li> tags (3 posts)

  1. zialingua
    Member
    Posted 4 years ago #

    Would that be possible to have the functions wp_list_pages and wp_page_menu with an option to display pages in a "flat" format like the functions wp_list_bookmarks or wp_tag_cloud or wp_get_archives?

  2. palkovic
    Member
    Posted 4 years ago #

    I am doing it thru CSS :
    <div id="my_own_style">
    <?php wp_page_menu('sort_column=menu_order&include=5,11&title_li=&show_home=0'); ?>

    CSS :
    #my_own_style ul li {
    list-style: none;
    }
    Hope it will help.

    MP
    ---------------------
    http://www.KurzyPotapania.sk

  3. zialingua
    Member
    Posted 4 years ago #

    Hi palkovic,

    I do the same for general list items in my own WP theme:

    li, ol, ul {
    list-style:none;
    }

    This question i raised is for WP developers to add to the listed functions additional controls/arguments so it would be easier, cleaner and more aesthetical to manage this widget plug-ins.

Topic Closed

This topic has been closed to new replies.

About this Topic