'see-also alignfull']); $title = $attributes['title'] ?? null; $current_post_ID = $attributes['currentPostID'] ?? get_the_ID(); $current_tags = get_the_terms($current_post_ID, 'etiquettes'); $relate_topic_posts = get_posts(array( 'post_type' => array('analyses-etudes', 'expositions', 'outils-pedagogiques'), 'tax_query' => array( array( 'taxonomy' => 'etiquettes', 'field' => 'term_id', 'terms' => wp_list_pluck($current_tags, 'term_id'), ), ), 'posts_per_page' => 3, 'post__not_in' => array($current_post_ID), )); ?>
>

Suggestions

Voir aussi
sur ce sujet

$post->ID, 'current_post_type' => $post->post_type)); ?>