Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, glad you like the plugin.

    I’ll make sure Marcus knows about your suggestion. Meantime, if you’re up for it, you can create your own conditional placeholder. There’s a tutorial here:

    https://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/

    Thread Starter J.D. Grimes

    (@jd55)

    Thank you for the link! I’ll definitely do that. Oh, and if you do take this suggestion, could you post back here and let me know what the name of the condition will be? Thanks.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I guest you can start creating one at the moment using @caimin suggestion; just replace the following

    – em_event_output_condition to em_location_output_condition
    – $EM_Event to $EM_Location

    then

    if( is_object($EM_Event) && preg_match('/^has_style_(.+)$/',$condition, $matches) && is_array( $EM_Event->styles ) ){

    with

    if( is_object($EM_Location) && preg_match('/^has_state$/',$condition, $matches) && $EM_Location->location_state != '' ){

    then paste in your theme functions.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional Placeholder Suggestion’ is closed to new replies.