The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. zialingua
    Posted 6 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
    Posted 6 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.


  3. zialingua
    Posted 6 years ago #

    Hi palkovic,

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

    li, ol, ul {

    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