• Hi all,

    The site I am working with now has a quarterly report. Now, I have all the items in categorized posts and I can get the posts to show up in a single page, but here is what I am hoping to get help for:

    I would like to group a bunch of posts (various number) into a single post/page.

    How the posts are created:

    <?php
                  // Blog post query
        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
        query_posts( array( 'post_type' => 'enews_post', 'paged'=>$paged, 'showposts'=>0) );
        if (have_posts()) : while ( have_posts() ) : the_post(); ?>
        <div <?php post_class(); ?>>
        <header>
          <h3><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?></a></h3>
          <p class="meta"><?php echo bootstrapwp_posted_on();?></p>
          </header>
         <?php // Checking for a post thumbnail
            if ( has_post_thumbnail() ) ?>
               <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
              <?php the_post_thumbnail("news-small");?></a> <?php the_excerpt();?>
    
             <?php the_post(); global $post; ?>
       </div><!-- /.post_class -->
     <?php endwhile; endif; ?>

    I use the above to fetch posts, but I would like to be able to put a bunch of (sub)posts together to make a single post.

    Thanks for any and all help!

  • The topic ‘Group several posts into one’ is closed to new replies.