WordPress.org

Ready to get started?Download WordPress

Forums

Formattting wp_list_pages output (4 posts)

  1. EllisJordanBojar
    Member
    Posted 7 years ago #

    I'm looking for a way to get wp_list_pages to return page names with a delimiting character, such as putting a bullet or dash between each page name. My PHP is weak, and my current theme simply outputs the page names like so:

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

    What do I need to add to get the list formatted when displayed?

  2. rudolf45
    Member
    Posted 7 years ago #

    Nothing. Just use the stylesheet to "format" it as you want.

  3. EllisJordanBojar
    Member
    Posted 7 years ago #

    The PHP returns a string made up of a series of links. The goal is to insert a dash or bullet between each of the links.

    So what I get is "About Contact Home" when what I'd like is "About - Contact - Home".

    I'm not familiar with a technique that uses CSS to insert text. Any chance you could explain? I'd love to handle it in CSS alone.

  4. rudolf45
    Member
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic