• I am trying to add a case to em-template-tags that allows me to display the #location instead of the date in the h2 tags

    here is the case I wrote

    case 'title':
    
    			$location = array();
    			foreach ($location as $EM_Event->Location){
    				echo '<h2>'.$location.'</h2>';
    				echo EM_Events::output($events, $atts);
    			}
    
    			break;	
    
    		default:

    Of course this doesn’t do anything, doesn’t error out, just doesn’t display anything.

    I just want to be able to display the location and only display the location once ever, then under the location display the dates and under each date display the times of each event and the event name.

    The only other thing I can think of is to duplicate the daily case and just remove the echoing of the h2 and then manually add each location and then call my new custom case.

    What do you think?

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Events Manager] em-template-tags.php (display location instead of date)’ is closed to new replies.