Posted By

psdesignuk on 05/24/10


Tagged

php post wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

artificialid
kwameboame


Wordpress Display Post


 / Published in: PHP
 

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

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

  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>

Report this snippet  

You need to login to post a comment.