Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

3 Loops
Tuesday, July 10th, 2007 at 12:29:44pm MDT 

  1. <div id="hot">
  2. <span class="fresh">Hot Fresh Topics</span>
  3.  <?php query_posts('cat=-3&showposts=4'); // exclude the third category ?>
  4.  
  5.  <?php while (have_posts()) : the_post(); // start your Loop ?>
  6.  
  7. <h4 class="storytitle"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
  8. <?php the_time('d.m.Y'); ?><br />
  9. <?php the_excerpt_reloaded(30, '', '<a><img>', TRUE, 'Keep reading...', FALSE, 2); ?>
  10.  
  11.  <?php endwhile; ?>
  12.  
  13. </div>
  14.   <div id="latest"> <!--latest starts; displays one post from cat 3-->
  15.  
  16.       <?php $top_query = new WP_Query('cat=3&showposts=1'); ?>
  17.       <?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>
  18.       <h2 class="editorial">The Weekly Buzzword</h2>
  19.       <h2 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  20.         <br />
  21.        
  22.         <div class="storycontent">
  23.           <?php the_content(); ?>
  24.         </div>
  25.         <br />
  26.         <div class="feedback">
  27.                   <?php wp_link_pages(); ?>
  28.                   <div class="alignleft"><div class="meta foe" ><?php _e("Published in:"); ?> <?php the_category() ?>  on <?php the_time('d.m.Y.') ?> <?php edit_post_link(); ?>
  29.         </div></div>
  30.                   <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), 'commentlink'); ?>
  31.         </div>
  32.        
  33.         <!--
  34.         <?php trackback_rdf(); ?>
  35.         -->
  36.      
  37.       <?php comments_template(); // Get wp-comments.php template ?>
  38.       <?php endwhile; ?>
  39.      </div> <!--latest ends--> 
  40.      
  41.       <div id="content">
  42.       <div class="recentheader">More recent articles</div>
  43.      
  44.         <?php query_posts('showposts=4&cat=-3&offset=4'); ?>
  45.         <?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>
  46.        
  47.         <?php// the_date('','<h2>','</h2>'); ?>
  48.                
  49.             <div class="post"> <!--div post starts-->
  50.                  <h2 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  51.                 <div class="meta"><?php _e("Published in:"); ?> <?php the_category(',') ?> &#8212; <?php// the_author() ?> <?php the_time('d.m.Y. - G:i') ?> <?php edit_post_link(__('Edit This')); ?> |
  52.               </div>
  53.                
  54.                 <div class="storycontent">
  55.                     <?php the_excerpt(); ?>
  56.                 </div>
  57.                
  58.                 <div class="feedback">
  59.                         <?php wp_link_pages(); ?>
  60.                         <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), 'commentlink'); ?>
  61.                 </div>
  62.                 <div class="separator"></div>
  63.                 <!--
  64.                 <?php trackback_rdf(); ?>
  65.                 -->
  66.            
  67.             <?php comments_template(); // Get wp-comments.php template ?>
  68.            
  69.             </div> <!--div post ends-->
  70.        
  71.         <?php endif; endwhile; ?>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation