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

    can you provide more details or sample code? e.g. Is that the shortcode of EM or your custom function?

    I was hoping to find something on this topic, too. This is my particular use case:

    [events_list_grouped mode="monthly" scope="2-months" category="hikes"]
    [toggle title="#_EVENTNAME" subtitle="#_EVENTDATES (#_EVENTTIMES)"]
    #_EVENTEXCERPT<br/><a href="#_EVENTURL">Full event info ></a>
    [/toggle][/events_list_grouped]

    Is there an action hook so I can add do_shortcode( $content ) to events_list_grouped after it replaces placeholders?

    Okay, I figured out how to do this. Add this to functions.php:

    function custom_events_list_grouped( $args=array(), $format='' ) {
    	$content = em_get_events_list_grouped( $args, $format );
    	return do_shortcode( $content );
    }
    add_shortcode( 'events_list_grouped', 'custom_events_list_grouped' );

    This overrides EM’s shortcode.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    thx for posting your soluiton

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable other shortcodes in Events Manager’ is closed to new replies.