• I have add this custom loop before comment template in single.php page

    <?php $my_query = new WP_Query('category_name=example' );
      while ($my_query->have_posts()) : $my_query->the_post();
      $do_not_duplicate = $post->ID; ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
      <?php endwhile; ?>

    but now the comment loop doesn’t work 🙁
    .
    .

    [moderated–bump removed. Please refrain from bumping as per Forum Rules]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Custom loop inside single.php problem’ is closed to new replies.