Code problem in Super-loop
-
So, here is my code for the generatordevelopmentgroup.com/blog main page
`<?php get_header(); ?>
<div id=”content” class=”narrowcolumn”>
<div id=”bigimage”><!img src=”images/head.gif” /></div><img class=”aligncenter size-full wp-image-14″ title=”eventhead” src=”http://generatordevelopmentgroup.com/blog/wp-content/themes/yourblog-20-theme/images/eventhead.gif” alt=”” width=”500″ height=”33″ />
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php static $eventcount = 0;
if ($eventcount == “1”) { break; }
else { ?><?php if (in_category(‘1’) && !is_single() ) continue; ?>
<?php if (in_category(‘3’) && !is_single() ) continue; ?>
<?php if (in_category(‘5’) && !is_single() ) continue; ?>
<?php if (in_category(‘6’) && !is_single() ) continue; ?>
<?php if (in_category(‘7’) && !is_single() ) continue; ?>
<?php if (in_category(‘8’) && !is_single() ) continue; ?><div class=”post”>
<?php the_content(); ?>
</div><?php $eventcount++; } ?>
<?php endwhile; ?>
<?php endif; ?><img class=”aligncenter size-full wp-image-14″ title=”essayhead” src=”http://generatordevelopmentgroup.com/blog/wp-content/themes/yourblog-20-theme/images/essayhead.gif” alt=”” width=”500″ height=”33″ />
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php static $essaycount = 0;
if ($essaycount == “1”) { break; }
else { ?><?php if (in_category(‘1’) && !is_single() ) continue; ?>
<?php if (in_category(‘3’) && !is_single() ) continue; ?>
<?php if (in_category(‘4’) && !is_single() ) continue; ?>
<?php if (in_category(‘6’) && !is_single() ) continue; ?>
<?php if (in_category(‘7’) && !is_single() ) continue; ?>
<?php if (in_category(‘8’) && !is_single() ) continue; ?><div class=”post”>
<?php the_content(); ?>
</div><?php $essaycount++; } ?>
<?php endwhile; ?>
<?php endif; ?><img class=”aligncenter size-full wp-image-14″ title=”newshead” src=”http://generatordevelopmentgroup.com/blog/wp-content/themes/yourblog-20-theme/images/newshead.gif” alt=”” width=”500″ height=”33″ />
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php static $newscount = 0;
if ($newscount == “1”) { break; }
else { ?><?php if (in_category(‘1’) && !is_single() ) continue; ?>
<?php if (in_category(‘4’) && !is_single() ) continue; ?>
<?php if (in_category(‘5’) && !is_single() ) continue; ?>
<?php if (in_category(‘6’) && !is_single() ) continue; ?>
<?php if (in_category(‘7’) && !is_single() ) continue; ?>
<?php if (in_category(‘8’) && !is_single() ) continue; ?><div class=”post”>
<?php the_content(); ?>
</div><?php $newscount++; } ?>
<?php endwhile; ?>
<?php endif; ?></div>
<?php get_footer(); ?>
Now, if you look at the page there is nothing showing up under the essay section, but there is a post there. I made sure that I had the right category, but I cannot get the post to show up and I am sure that I am missing something in the code. Any thoughts?
wb
The topic ‘Code problem in Super-loop’ is closed to new replies.