Wordpress Display Post


/ Published in: PHP
Save to your folder(s)

A quick snippet of the PHP/Wordpress code behind my archive page, mainly for @andypoppins :D


Copy this code and paste it in your HTML
  1. <div class="box1 clearfix">
  2. <div class="post clearfix">
  3.  
  4. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  5. <h2 class="hd-page"><?php the_title(); ?></h2>
  6.  
  7. <?php the_content(__('<p>Read the rest of this page &raquo;</p>')); ?>
  8. <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> '), 'after' => '</p>', 'next_or_number' => 'number')); ?>
  9. <?php endwhile; endif; ?>
  10.  
  11. <?php edit_post_link(__('Edit this entry.'), '<p>', '</p>'); ?>
  12.  
  13. </div>
  14. </div>

URL: http://www.psdesignuk.com/blog/category/design

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.