• Hi, I really like this plugin and am just trying to sort it out to revert my site from the current event manager to this plugin. What the current one allows me to do is enter a tag for NG Gallery on each event.

    For example, I enter in the code “cream-ibiza” into the admin, which then enters that value into the shortcode like this: [nggtags gallery="cream-ibiza"], now I’ve tried using the placeholders included with Events Manager like [nggtags gallery="#_CATEGORYID"] – however, this doesn’t work and just returns a blank when viewing the event page. How can I get this to work?

    Also, I have a link to an affiliate for ticket sales, and I’ve added a new attribute onto the events page for this, so that when I enter the URL for the affiliate it displays it on the event description. However, I’d like to style it so that there’s a bit of code at the start and end of the url, for example < a href=”affiliate link”>text< / a>, but I don’t want that code to appear unless there’s a value in the attribute – how can I do that? Sort of like this… {has_bookings}
    <h3>Bookings</h3>
    #_BOOKINGFORM
    {/has_bookings}

    Any help would be greatly appreciated! I’m also there ??

    Ta

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter akiraprise

    (@akiraprise)

    Ignore the second question – I’ve found the condition placeholders tutorial ??

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    in the description, placeholders don’t work (although shortcodes do).

    Thread Starter akiraprise

    (@akiraprise)

    Hi Marcus, I was putting the placeholders in the correct place in the EM Settings page, but it wasn’t working – now, for some reason – it is, so not to worry ??

    Whilst you’re here… The conditional Placeholders code from the tutorial, where do I put this? I’d only like a few simple conditional placeholders, for example 2 ticket links,

    Thanks for the quick replies btw Marcus!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Thread Starter akiraprise

    (@akiraprise)

    Thanks – one last thing ( I hope… ?? ) I’m afraid I can only hack around at PHP code and don’t really have a clue how it works….

    How do I get the function to check if one of the attributes are filled in, for example “#_ATT{spotlight}” and return a value based on that, please help ??

    add_action('em_event_output_condition', 'my_em_spotlight_event_output_condition', 1, 4);
    function my_em_spotlight_event_output_condition($replacement, $condition, $match, $EM_Event){
    	if( is_object($EM_Event) && preg_match('/^has_style_(.+)$/',$condition, $matches) && is_array( $EM_Event->styles ) ){
    		if( in_array($matches[1],$EM_Event->styles) ){
    			$replacement = preg_replace("/\{\/?$condition\}/", '', $match);
    		}else{
    			$replacement = '';
    		}
    	}
    	return $replacement;
    }
    snomo

    (@snomo)

    Akira,

    Were you able to figure out a way of using Events Manager to associate multiple images with an event, as you mention in your first post?

    Thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    we have a demo that does this with nextgen gallery and shortcodes within event descriptions – https://demo.wp-events-plugin.com/events/santana-20/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Events Manager] Using shortcodes and EM Placeholders together’ is closed to new replies.