Thanks Baden…
Code of the category page :
<?php echo category_description( $category_id ); ?>
</div>
<?php
//afficher tous les posts de la catégories "services sur internet"
$taxonomy = 'category';
$param_type = 'category__in';
$cat_id = get_cat_ID('questions-reponses');
$term_args=array(
'orderby' => 'name',
'order' => 'ASC',
'child_of' => $cat_id,
'include' => '4'
);
$terms = get_terms($taxonomy,$term_args);
if ($terms) {
foreach( $terms as $term ) {
$args=array(
"$param_type" => array($term->term_id),
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<h4 style="text-decoration: none;" id="<?php the_ID(); ?>" class="collapseomatic" rel="<?php the_ID(); ?>"><?php the_title(); ?></h4>
<div id="target-<?php the_ID(); ?>" class="collapseomatic_content">
<p>
<?php
the_content();// l'article
?>
</p>
<p style="height: 1em;"></p>
</div><!--collapse-->
<p></p>
<?php
endwhile;
}
}
}
wp_reset_query(); // Restore global post data stomped by the_post().
?>
And the page with the problem (try the second post, with “RAM” word : https://www.d1-clic.com/category/questions-reponses/
But on the same single post, it’s OK
https://www.d1-clic.com/quelle-est-la-difference-entre-une-tablette-tactile-ordinateur/
Strange ??