• Resolved Luis Colome

    (@luiscolome)


    Hi there Bill.
    First of all, I’m in love with this plugin. Thanks million for your work. It’s been recently I started using it in some of my clients sites and they are pretty happy with the results.
    My question… Is there a way to include the title like in [display-posts title=”Recent Posts”] inside the wrapper?
    I need to create a layout where the first item, are the title and a short description. And my second question…Can a description could be added, like in WordPress category pages that you can add a short description?
    That is for a typical long homepage with several loops in a directory site.

    Thanks again for your amazing job.

    Luis.

    • This topic was modified 7 years, 1 month ago by Luis Colome.
Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Thank you for the kind words – I really appreciate it.

    Unfortunately no, there is not a method for adding the title inside the wrapper currently. This is because the default wrapper is ul, and the only element allowed inside a ul is li (list item). Adding the heading inside the unordered list would be invalid markup.

    That said, if you don’t care about invalid markup you could use the display_posts_shortcode_wrapper_open filter to add any content you like (ex: title and short description) after the opening tag, based on custom parameters you specify. Ex: [display-posts intro_title=”My Title” intro_description=”My description”]

Viewing 1 replies (of 1 total)

The topic ‘Title inside wrapper’ is closed to new replies.