/ Published in: PHP
                    
                                        
A quick snippet of the PHP/Wordpress code behind my archive page, mainly for @andypoppins :D
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<div class="box1 clearfix">
<div class="post clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 class="hd-page"><?php the_title(); ?></h2>
<?php the_content(__('<p>Read the rest of this page »</p>')); ?>
<?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> '), 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php endwhile; endif; ?>
<?php edit_post_link(__('Edit this entry.'), '<p>', '</p>'); ?>
</div>
</div>
URL: http://www.psdesignuk.com/blog/category/design
Comments
 Subscribe to comments
                    Subscribe to comments
                
                