Advertisement
hmbashar

WordPress Single.php Page code

Mar 10th, 2015
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php if(have_posts()) : ?>
  2. <?php while (have_posts()) : the_post(); ?>
  3. <div class="single_post">
  4.     <div class="post_heading">
  5.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </div>
  6.     <div class="post_info"> Posted In: <?php the_category(', '); ?>| Posted On <?php the_time('M d, Y') ?> <?php comments_popup_link('No Comment', '1 Comment', '% Comments'); ?> </div>
  7.     <div class="post_content"> <?php the_content(); ?> </div>
  8.     <?php comments_template( '', true ); ?>
  9. </div>
  10. <?php endwhile; ?> <?php else : ?>
  11. <h3><?php _e('404 Error&#58; Not Found'); ?></h3>
  12. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement