WordPress.org

Forums

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.

the_excerpt as list (3 posts)

  1. M
    Member
    Posted 3 years ago #

    Hi,
    I wonder how to display elements in exceprpt as a list

    <ul><li>...

    Something like at tags would be helpful, but does not work: the_excerpt('<ul><li>','</li><li>','</li></ul>');

    Any ideas?

  2. M
    Member
    Posted 3 years ago #

    I've got list to display at excerpt like:

    element1
    element2
    element3
    element4

    And I want to list it like:

    <ul>
    <li>element1</li>
    <li>element2</li>
    <li>element3</li>
    <li>element4</li>
    </ul>
  3. Michael
    Forum Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags