• Trying to make #_CATLINKS as a placeholder using the below in em-event.php

    case '#_CATLINKS':
    					ob_start();
    					$template = em_locate_template('placeholders/catlinks.php', true, array('EM_Event'=>$this));
    					$replace = ob_get_clean();
    					break;

    This isn’t working though. It doesn’t recognize #_CATLINKS What am I missing? catlinks.php is in my plugin dir correctly.

    http://wordpress.org/extend/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You might want to try following this tutorial http://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/

    Please also try this and insert the code somewhere e.g. em-functions.php

    function my_em_styles_placeholders($replace, $EM_Event, $result){
     global $wp_query, $wp_rewrite;
     switch( $result ){
      case '#_CATLINKS':
           ob_start();
           $template = em_locate_template('placeholders/catlinks.php', true, array('EM_Event'=>$this));
    	$replace = ob_get_clean();
      break;
     }
     return $replace;
    }
    add_filter('em_event_output_placeholder','my_em_styles_placeholders',1,3);
    Thread Starter rontarson

    (@rontarson)

    @agelonwl Got this organized in functions file. Appreciate it

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Events Manager] Custom Placeholder’ is closed to new replies.