Title: Code problem in Super-loop
Last modified: August 19, 2016

---

# Code problem in Super-loop

 *  Resolved [willieb](https://wordpress.org/support/users/willieb/)
 * (@willieb)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/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&#8221](http://generatordevelopmentgroup.com/blog/wp-content/themes/yourblog-20-theme/images/eventhead.gif&#8221);
   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&#8221](http://generatordevelopmentgroup.com/blog/wp-content/themes/yourblog-20-theme/images/essayhead.gif&#8221);
   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&#8221](http://generatordevelopmentgroup.com/blog/wp-content/themes/yourblog-20-theme/images/newshead.gif&#8221);
   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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [willieb](https://wordpress.org/support/users/willieb/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/code-problem-in-super-loop/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
