Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /* Suggestions welcome to tidy up this loop */ ?>
- <?php /* Show ONE post from category 7 in div#featured */ ?>
- <?php if (have_posts()) : query_posts('cat=7 post&&showposts=1'); ?>
- <?php while (have_posts()) : the_post(); $fimg = get_post_meta($post->ID, "articleimg", TRUE); ?>
- <div id="featured">
- <img src="<?php echo $fimg; ?>" width="306px" height="365px" alt="<?php the_title(); ?>" /><?php echo $fdesc; ?>
- <div class="overlay">
- <p><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong><br />
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_excerpt(); ?></a></p>
- </div>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php /* Show THREE post excerpts from all categories except category 7 in div#articles */ ?>
- <div id="articles">
- <?php if (have_posts()) :
- $count = 4;
- query_posts($query_string.'&cat=-7,-11');
- while (have_posts()) : the_post(); ?>
- <?php
- if (($count < 7)) { ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php the_title(); ?>
- </a></h2>
- <?php the_excerpt(); ?>
- <p class="comments">
- <?php comments_popup_link('0', '1', '%'); ?>
- </p>
- </div>
- <?php /* Show the next four post TITLES ONLY excerpts from all categories except category 7 in an UNORDERED LIST, still within div#articles */ ?>
- <?php } else if (($count < 11)) { ?>
- <?php /* Where can I put the <ul>? */ ?>
- <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
- <?php } ?>
- <?php $count++; endwhile; ?>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement