• Resolved otaviof

    (@otaviof)


    right now, my event array has #_LOCATIONTOWN #_LOCATIONSTATE but we have a few “virtual” events mixed in with location events.

    How could i display the word “Virtual” on that loop?

    something along the lines of: If locationtown is null, echo ‘virtual event’

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • timrv

    (@timrv)

    Hello,

    You could try inserting them under Events > Settings > Formatting > Single event page format. You could probably use our conditional placeholder no_location or has_location also. (https://wp-events-plugin.com/documentation/conditional-placeholders/)

    When creating event, You could un-check the location part and use something like:

    {no_location}VIRTUAL{/no_location}

    Thread Starter otaviof

    (@otaviof)

    purrrfect!! tks!

    Hello!

    I’ve tried this, but events without a physical location (i.e., the checkbox “This event does not have a physical location.” is checked) are not showing up at all in my lists of upcoming events on the front end. Only events with physical locations are listed.

    Here is my config in Events > Settings > Formatting > Events Page > Default event list format:

    <div>
            <h5>#_EVENTLINK</h5>
            {has_location}
                <div>
                    <p><u>Where</u>: #_LOCATIONNAME, à #_LOCATIONTOWN #_LOCATIONIMAGE{25,25}</p>
                </div>
            {/has_location}
            {no_location}
                <div>
                    <p>VIRTUAL</p>
                </div>
            {/no_location}
            <div >
                #_EVENTDATES
            </div>
    </div>

    My site is running WP v5.4.1 and EM v5.9.7.3 (the latest versions of both as of this post).

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display “virtual” as a location’ is closed to new replies.