• I’m using the following code in a post in order to retrieve a list of posts for a given category
    ‘<?php
    global $post;
    $myposts = get_posts(‘&category=5’);
    foreach($myposts as $post) :
    ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?>

      It works perfectly except for the fact that it also displays the full comments appended to each title. How can this be avoided?

      Thx

      Paul

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

The topic ‘¿ Removing comments from list of posts?’ is closed to new replies.