• I’m trying to display posts from certain series instead of posts from certain categories in the middle column on the main page of my blog EnviroHumanImpact. Also, I’m using the Organize Series Plugin to generate the series tags.

    Here is the code for the middle column as it is now for displaying the posts by category.

    <div id="rightcol">
        <?php
    // this is where you enter the IDs of which categories you want to display
    $display_categories = array(117,66,70,59,63);
    foreach ($display_categories as $category) { ?>
        <div class="clearfloat">
          <?php query_posts("showposts=1&cat=$category");
    	    $wp_query->is_category = false;
    		$wp_query->is_archive = false;
    		$wp_query->is_home = true;
    		 ?>
          <h3><a>"><?php
    	// this is where the name of each category gets printed
    	  single_cat_title(); ?></a></h3>
          <?php while (have_posts()) : the_post(); ?>
          <?php
    // this grabs the image filename
    	$values = get_post_custom_values("Image");
    // this checks to see if an image file exists
    	if (isset($values[0])) {
    ?>
          <a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" /></a>
          <?php } ?>
          <a>" rel="bookmark" class="title"><?php
    // this is where title of the article gets printed
    	  the_title(); ?>&raquo;</a>
          <?php the_excerpt(); ?>
          <?php endwhile; ?>
        </div>
        <?php } ?>
      </div><!--END RIGHTCOL-->

    Please help, this has been killing me for a while now! Thanks in advance.
    Matt

  • The topic ‘DIsplay by series instead of by categories on main index’ is closed to new replies.