listé uniquement les événements qui appartiennent à deux catégories à la fois
-
listé uniquement les événements qui appartiennent à deux catégories à la fois/listed only events that belong to both categories at once
Bonjour je souhaite créer une page qui liste les événements qui appartiennet à la fois à la catégorie qui posséde l’ID 16 et à la catégorie qui posséde l’ID 24;
que ce soit avec$events = eo_get_events(array( 'numberposts'=>-1, 'tax_query'=>array( array( 'taxonomy'=>'event-category', 'operator' => 'IN', 'field'=>'slug', 'terms'=>array('photos','enfance'), 'orderby'=>'date', 'order'=>'DESC' ))));?>
ou cette méthode
$query = new WP_Query('ec3_after=today&posts_per_page=5&cat=16,24&order=dsc' ); if ($query->have_posts())
j’obtiens les événements qui appartiennent aux deux catégories et non pas “seulement les événements qui appartiennent aux deux catégories à la fois” comment puis-je faire cela ?
Cordialement.Hello I want to create a page that lists the events that appartiennet both the category that has the ID 16 and the class that has the ID 24;
whether with$events = eo_get_events(array( 'numberposts'=>-1, 'tax_query'=>array( array( 'taxonomy'=>'event-category', 'operator' => 'IN', 'field'=>'slug', 'terms'=>array('photos','enfance'), 'orderby'=>'date', 'order'=>'DESC' ))));?>
or this method
$query = new WP_Query('ec3_after=today&posts_per_page=5&cat=16,24&order=dsc' ); if ($query->have_posts())
I get the events that belong to two categories and not “only events that belong to both categories at once” how can I do this?
Cordially.
- The topic ‘listé uniquement les événements qui appartiennent à deux catégories à la fois’ is closed to new replies.