Advertisement
jamesabruce

Wordpress - single-products.php for MakeUseOf.com

Jul 16th, 2011
1,366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <div id="content" class="narrowcolumn">
  4.  
  5.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6.  
  7.             <div class="post" id="post-<?php the_ID(); ?>">
  8.                 <div class="post-top">
  9.                     <div class="post-title">
  10.                         <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a></h2>
  11.                         <h4><?php comments_number('0', '1', '%'); ?></h4>
  12.                     </div>
  13.                     <h3>
  14.                         Added to the database on <?php the_time('d-m-Y') ?>
  15.                     </h3>
  16.                    
  17.                     <?php the_post_thumbnail('medium',array('style'=>'float:left;'));?>
  18.                    
  19.                     <div style="float:left;padding:150px 20px 20px 20px;font-size:large;"><?php the_meta();?></div>
  20.                    
  21.                 </div>
  22.  
  23.                 <div class="entry" style="clear:both;">
  24.                     <?php the_content('Read the rest of this entry &raquo;'); ?>
  25.                 </div>
  26.             </div>
  27.  
  28.     <?php comments_template(); ?>
  29.  
  30.     <?php endwhile; else: ?>
  31.  
  32.         <p>Sorry, no posts matched your criteria.</p>
  33.  
  34. <?php endif; ?>
  35.  
  36.     </div>
  37.  
  38. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement