• Resolved biochip

    (@biochip)


    I created two types of events (workshops and events) each one have different categories. I would like to have different design page for each one. Is it possible?

    In the single events pages I did this to assign some variables:

    global $post;
    $EM_Event = em_get_event($post->ID, 'post_id');
    $variable = $EM_Event->output('#_CATEGORYPARENTID');

    could do something similar in the category page?

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

Viewing 1 replies (of 1 total)
  • Thread Starter biochip

    (@biochip)

    Ok, I think is resolved for me… I have the $categories_events variable to control some things in the template.

    global $EM_Category;
    $arrCategory = get_terms(EM_TAXONOMY_CATEGORY,array('parent'=>0,'hide_empty'=>0) );
    foreach($arrCategory as $arrterm) {
    	$child = get_term_children($arrterm->term_id,EM_TAXONOMY_CATEGORY);
    	foreach($child as $term_child_id) {
    		$term_child = get_term_by('id',$term_child_id,EM_TAXONOMY_CATEGORY);
    		if ( $term_child->name == $EM_Category->name ){
    			$categories_events = $arrterm->slug;					}
    }
    }//fi foreach
Viewing 1 replies (of 1 total)
  • The topic ‘Diferent page desing for each category’ is closed to new replies.