• Hi,

    I′m using custom excerpt field on my posts to show contact information of the person the post is about. For this I need to separate different pieces of information (name, telephone etc.) to individual lines for the excerpt to make any sense. As it seems by default tags are not allowed in excerpts.

    I downloaded the Advanced Excerpts -plugin and set the Strip Tags -option to “Don′t remove any tags”. Does this function only apply to automatically generated excerpts or am I missing something as any tags I try to add wont work on frontend.

    Here is an example what I′m tryin to achieve:

    option 1, using <br> -tag

    Name<br>Telephone 1<br>Telephone 2

    option 2, using <p> -tag

    <p>Name</p><p>Telephone 1</p><p>Telephone 2</p>
    
    

    This should result in three lines showing the corresponding data.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WPKube

    (@wpkube)

    There is a paragraph around the excerpt output, and a paragraph element inside of a paragraph element is not valid HTML which leads me to believe that the HTML tag removal is forced.

    Is that posts listing part of the Flatsome theme or are you using some plugin for that section?

Viewing 1 replies (of 1 total)
  • The topic ‘Adding tags to custom excerpt’ is closed to new replies.