Forums

wp_list_pages - but not in <li> format - I want a comma-separated list (3 posts)

  1. minnellium
    Member
    Posted 4 months ago #

    I need to list a whole load of pages but not in the default list form. I think we have the capability to use &format= in wp-get_archives but not for wp-list-pages

    Anyone know how? The specific line I'm using is

    <?php wp_list_pages('child_of=51&title_li=&depth=1'); ?>

    ( - it's also the child of a particular page) and I want them to display like this

    Other pages within this section:
    childpage1, childpage2, childpage3, childpage4, childpage5, childpage6, childpage7, childpage8, etc etc

  2. minnellium
    Member
    Posted 4 months ago #

    Is it maybe something I can do in wp-incudes/post-template.php?

    Anyone ??? Thanks?!!

  3. chrisod57
    Member
    Posted 2 months ago #

    I did it with a stylesheet.

    #gdm-plm-2 ul{
    margin: 0;
    padding: 0;
    margin-bottom: 1em;
    float: left;
    }
    
    #gdm-plm-2 ul li{
    display: inline;
    }
    #gdm-plm-2 ul li a{
    float: left;
    color: black;
    padding: 2px 2px;
    text-decoration: none;
    }

    where gdm-plm-2 is the div id for that particular list.

    The items in the list will need to have the , as part of the name ie: childpage1,

Reply

You must log in to post.

About this Topic