Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    yes, you can use conditional placeholder {is_past} content {/is_past} in your formatting option under events > settings > formatting > events

    https://wp-events-plugin.com/documentation/conditional-placeholders/

    Thread Starter namgostar

    (@namgostar)

    Thank you! I am very rough when it comes to editing code (I know the very basics). I want the time to not appear with past events. I would rather it just be blank, but I think the way the code is intended, is to have some content (words) appear in it’s place. Can you help me code this so that the past events simply leave a blank spot?

    <tr>
    			<td>
                    #_EVENTDATES<br/>
                    #_EVENTTIMES
                    {is_past} {/is_past}
                </td>
                <td>
                    #_EVENTLINK
                    {has_location}<br/><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
                </td>
            </tr>
    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try

    {is_past} Bookings closed. {/is_past}
    {is_future} #_EVENTTIMES {/is_future}
    Thread Starter namgostar

    (@namgostar)

    Thank you so much. That code worked perfect!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide time from past events only’ is closed to new replies.