List child pages without ul list? (3 posts)

  1. Tadling
    Posted 9 years ago #

    I'm pulling a list of child pages to one of my static pages using:

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

    That spits out the information in unordered list just like how it is on the sidebar though. I was wondering if it's possible to do the same, only instead of having li tags wrapped around my page links, simply have a comma or something to separate the page names? Thanks for your time.

  2. You may have to manually query. I'll give everyone else a chance to come up with a better solution though before I go and code up a manual query.

  3. niziol
    Posted 9 years ago #

    I use a "custom functions" 'plug-in' where I add my little overly-retentive-inspired code bits. I just copied the wp_list_pages function, renamed it and then made it do what I'd like. Like most things I do, I doubt it's the easiest way, but it works for me!


Topic Closed

This topic has been closed to new replies.

About this Topic