• Hello,

    Trying to display a list off event using followin code:

    <h2>Représentations à venir</h2>
    [events_list scope="future" limit="0"]{has_tag_cuisine-marguerite}
    <ul>
     	<li>#_EVENTDATES : #_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONPOSTCODE</li>
    </ul>
    {/has_tag_cuisine-marguerite}[/events_list]

    There is a issue with format.

    As you can see on page’s code there is a <p></p> that changes the display.

    <h2>Représentations à venir</h2>
    <p></p>
    <ul>
    <li>21/11/2017 - 26/11/2017 : Théâtre du Pavé, Toulouse 31400</li>
    </ul>
    <p></p>
    <ul>
    <li>13/01/2018 : Petit Théâtre du Centre, Colomiers 31</li>
    </ul>
    <p></p>

    How can avoid this?

    Thanks

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    It sounds like your theme is adding paragraph tags to new lines. Try removing the line spaces in your shortcode. Like this:

    <h2>Représentations à venir</h2>
    [events_list scope="future" limit="0"]{has_tag_cuisine-marguerite}<ul<li>#_EVENTDATES : #_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONPOSTCODE</li></ul>{/has_tag_cuisine-marguerite}[/events_list]
    Thread Starter Cyrille Sanson

    (@css31)

    Hi,

    I’ve already tried with no success.

    Thanks,

    If you test with the default WordPress theme do you get the same result?

    Are you using the Visual or Text editor?

    Thread Starter Cyrille Sanson

    (@css31)

    Hello,

    Yes, same issue with Twenty Seventeen.

    See: https://dev.corinne-mariotto.com/la-cuisine-de-marguerite/

    Using visual or text editor same issue, also.

    Looking at your code again I think the problem is that you have the ul tags within the shortcode. Try this instead:

    <h2>Représentations à venir</h2>
    <ul>
    [events_list scope="future" limit="0"]{has_tag_cuisine-marguerite}
    <li>#_EVENTDATES : #_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONPOSTCODE</li>
    {/has_tag_cuisine-marguerite}[/events_list]
    </ul>
    Thread Starter Cyrille Sanson

    (@css31)

    Hello Caimin,

    That’s perfect! It works.

    Thank you very much,

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Event list format’ is closed to new replies.