Advertisement
Guest User

Untitled

a guest
Apr 24th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.47 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.     <?php if (have_posts()) : ?>
  5.     <?php while (have_posts()) : the_post(); ?>
  6.     <?php $count = 0; ?>
  7.         <div class="box">
  8.             <div class="cats"><span class="tleft">Gluten Free Living</span>
  9.                 <div class="clear"></div>
  10.             </div>
  11.                 <div class="postim"><a href="http://deannasglutenfree.com/gluten-free-living"><img src="http://deannasglutenfree.com/wp-content/uploads/2012/04/gf-living.jpg" /></a>   </div>
  12.                     <div class="boxtitle">
  13.                         <div class="clear"></div>
  14.                     </div>
  15.        
  16.                     <div class="cover">
  17.                         <div class="entry">
  18.                         <ul>
  19.                             <?php
  20.                             query_posts('category_name=gluten-free-living&showposts=-1'); while(have_posts()) : the_post();
  21.                             ?>
  22.                             <li><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
  23.                             <?php endwhile; ?>
  24.                             </ul>
  25.                         </div>
  26.                     </div>
  27.         </div>
  28.  
  29.             <div class="box">
  30.             <div class="cats"><span class="tleft">Gluten Free Cooking</span>
  31.                 <div class="clear"></div>
  32.             </div>
  33.                 <div class="postim"><a href="http://deannasglutenfree.com/gluten-free-cooking"><img src="http://deannasglutenfree.com/wp-content/uploads/2012/04/gf-nutrition.jpg" /></a>   </div>
  34.                     <div class="clear"></div>
  35.                     <div class="cover">
  36.                         <div class="entry">
  37.                         <ul>
  38.                         <?php
  39.                         $myposts = get_posts('numberposts=5&category_name=gluten-free-cuisine');
  40.                         foreach($myposts as $post) :
  41.                         ?>
  42.                         <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  43.                         <?php endforeach; ?>
  44.                         </ul>
  45.                         </div>
  46.                         </div>
  47.             </div>
  48.            
  49.             <div class="box">
  50.             <div class="cats"><span class="tleft">Gluten Free Nutrition</span>
  51.                 <div class="clear"></div>
  52.             </div>
  53.                 <div class="postim"><a href="http://deannasglutenfree.com/gluten-free-nutrition"><img src="http://deannasglutenfree.com/wp-content/uploads/2012/04/gf-nutrition.jpg" /></a> </div>
  54.                     <div class="clear"></div>
  55.                     <div class="cover">
  56.                         <div class="entry">
  57.                         <ul>
  58.                         <?php
  59.                         $myposts = get_posts('numberposts=5&category_name=gluten-free-nutrition');
  60.                         foreach($myposts as $post) :
  61.                         ?>
  62.                         <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  63.                         <?php endforeach; ?>
  64.                         </ul>
  65.                         </div>
  66.                         </div>
  67.             </div>
  68.                    
  69.                         <div class="box">
  70.             <div class="cats"><span class="tleft">Gluten Free Uncategorized</span>
  71.                 <div class="clear"></div>
  72.             </div>
  73.                 <div class="postim"><a href="http://deannasglutenfree.com/gluten-free-nutrition"><img src="http://deannasglutenfree.com/wp-content/uploads/2012/04/gf-nutrition.jpg" /></a> </div>
  74.                     <div class="clear"></div>
  75.                     <div class="cover">
  76.                         <div class="entry">
  77.                         <ul>
  78.                         <?php
  79.                         $myposts = get_posts('numberposts=5&category_name=uncategorized');
  80.                         foreach($myposts as $post) :
  81.                         ?>
  82.                         <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  83.                         <?php endforeach; ?>
  84.                         </ul>
  85.                         </div>
  86.                         </div>
  87.             </div>
  88.                
  89.        
  90. <?php if(++$counter % 3 == 0) : ?>
  91.  
  92. <?php endif; ?>
  93. <?php endwhile; ?>
  94. <div class="clear"></div>
  95. <div id="navigation">
  96. <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
  97. </div>
  98.  
  99. <?php else : ?>
  100.         <h1 class="title">Item Not Found</h1>
  101.         <p>Sorry, but you are looking for something that maybe has been moved or deleted from my site. You can always do a search.</p>
  102. <?php endif; ?>
  103.  
  104. </div>
  105.  
  106. <?php get_sidebar(); ?>
  107. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement