Template to show all posts in full by category
-
I love the look of this theme but have to admit I’m struggling a bit with my customization. I am trying to make a template which will show each category on a page named the same as the category. Something along these lines.
`<section class=”content”>
<div class=”pad group”>
<?php get_template_part(‘inc/page-title’); ?><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?><?php endwhile; else: endif; ?>
<?php query_posts(‘category_name=’.get_the_title().’&post_status=publish,future’);?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=”entry themeform”>
<?php get_template_part(‘content’, ‘single’);?>
<?php endwhile; else: endif; ?>
</div><!–/.entry–><?php get_template_part(‘inc/pagination’); ?>
</div><!–/.pad–>
</section><!–/.content–>’
Any assistance would be much appreciated, the above works but looks ropey
and has a thumping big image holder in the middle.
I’m sure somebody else has probably already done this.
- The topic ‘Template to show all posts in full by category’ is closed to new replies.