• Resolved devrap

    (@devrap)


    Hi there.

    A frequent need I’m coming up against for the Events widget is the need to have separators only show when conditional information is displaying.

    Example:

    #_EVENTLINK<br/><ul>
    <li>#_EVENTDATES |  #_LOCATIONTOWN, #_LOCATIONSTATE </li>
    </ul>

    works great when an event has a physical location:

    <ul>
    <a href="http://whatever.com..."><strong>My Great Event</strong></a>
    Sep 29, 2014 - Sep 30, 2014 | Buffalo, NY</ul>

    But events with no location will then display like this:

    <ul>
    <a href="http://whatever.com..."><strong>June Webinar</strong></a>
    June 30, 2014 | ,</ul>

    Or similarly, there may be a state-wide event with no specific city, which would then look like this:

    <ul>
    <a href="http://whatever.com..."><strong>June Webinar</strong></a>
    June 30, 2014 | , NY</ul>

    How can we make separators conditional in the widget? Displaying a custom attribute in the widget would be doable as a kluge, but it’s not practical to require people to enter in a | or , separator as additional fields when entering in event data just to get our feed looking more streamlined and less awkward.

    Any clue how or where this can be edited or customized?

    Thanks in advance.

    https://wordpress.org/plugins/events-manager/

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Conditional separators in Events widget?’ is closed to new replies.