Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php
    $cat_id = 3;
    $args=array(
      'cat' => $cat_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() ) {
      echo 'List of Posts in category 3';
      while ($my_query->have_posts()) : $my_query->the_post(); ?>
        <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
        <?php
        the_content();
      endwhile;
    }
    wp_reset_query();  // Restore global post data stomped by the_post().
    ?>

    Hi,

    I have the same concern. I’m using List Category Posts to display posts on one of the pages, which is working perfectly!

    List Category Posts by default only display lists of post titles using this code [catlist name=mycategoryname].

    How do I display lists of posts from a category showing the Post title TOGETHER with their description?

    I have managed to display the post title and post description using this code [catlist name=mycategory content=yes]. But how do I limit the post description, for example 100 characters only? I don’t want to show all the content of the post, they have to click on the title (or read more…) to show all content.

    What code should I use?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: List category posts] Show the full posts from a category below the page’ is closed to new replies.