Event list
-
Hi !
I’m trying to create artists. I’ve succeed to add cutom meta box to events, to display artists on the single page of an event.
But right now i’m dealing with the event list display. I’m using a placeholder : #_AUTEURS
This placeholder call this (Display only the ID) :
function my_em_auteurs_placeholders($replace, $EM_Event, $result){ global $wp_query, $wp_rewrite; switch( $result ){ case '#_AUTEURS': $replace = 'none'; global $post; $replacea = get_post_meta($post->ID, _event_orga_orga_artiste, true); $idartiste = $replacea[0]; $query = array( 'post_type' => 'artiste', 'p' => $idartiste, ); $requete = new WP_Query($query); if ( $requete->have_posts() ) { while ( $requete->have_posts() ) : $requete->the_post(); ob_start(); $template = em_locate_template('placeholders/locationauteurname.php', true, array('EM_Event'=>$EM_Location)); $replace = ob_get_clean(); endwhile; } break; } return $replace; }And in my event list, there is a problem with the “post session”. It’s the same ID which is displayed all the time.
You can see here : http://www.desceneenscene.fr/wordpress/sorties/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Event list’ is closed to new replies.