Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Baden

    (@baden03)

    you will need to be a bit more specific. can you post the exact code you are using, and maybe a link to your site. thanks.

    Thread Starter wyman42

    (@wyman42)

    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 ??

    Plugin Author Baden

    (@baden03)

    So you are rolling your own collapse method.
    Is the box un-checked under the plugin settings where it says: Shortcode loads script?

    Thread Starter wyman42

    (@wyman42)

    Sorry, but i don’t see this box.
    a screenshot of my collapse plugin

    Plugin Author Baden

    (@baden03)

    how about updating to version 1.5.7?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘not work with post list’ is closed to new replies.