Advertisement
Guest User

wpissue

a guest
Jun 21st, 2011
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php /* Template Name: Test Design Page*/ ?>
  2. <?php get_header(); ?>
  3. <div id="contentwrapperonecolumn">
  4. <?php /*?><?php get_sidebar(); ?><?php */?>
  5.     <div id="onecolumn">
  6. <div id="content">
  7.     <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  8.         <div id="post-<?php the_ID(); ?>" <?php post_class('page'); ?>>
  9.             <article>
  10.                 <h1><span><?php the_title(); ?></span></h1>
  11.                 <?php edit_post_link('<small>Edit this entry</small>','',''); ?>
  12.                
  13.    
  14.                 <div class="post-content page-content">
  15.                     <?php the_content(); ?>
  16.                     <?php wp_link_pages('before=<div class="pagination">&after=</div>'); ?>
  17.                    
  18.             <?php
  19. $args = array(
  20. 'orderby' => 'menu_order', // Allows users to set order of subpages
  21. 'order' => 'ASC',
  22. 'post_parent' => $post->ID,
  23. 'post_type' => 'page',
  24. 'post_status' => 'publish'
  25.  
  26.  
  27. ); $postslist = get_posts($args);
  28. foreach ($postslist as $post) : setup_postdata($post); ?>
  29.  
  30. <div class="picture left">
  31. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  32. <?php the_post_thumbnail('design-thumb'); ?>
  33. </a><br /><?php the_title(); ?></div>
  34.  
  35. <?php endforeach; ?>
  36.                 </div><!--.post-content .page-content -->
  37.             </article>
  38.            
  39.            
  40. <?php /*?>
  41.             <div id="page-meta">
  42.                 <h3>Written by <?php the_author_posts_link() ?></h3>
  43.                 <p class="gravatar"><?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); } ?></p>
  44.                 <p>Posted on <?php the_time('F j, Y'); ?> at <?php the_time() ?></p>
  45.             </div><!--#pageMeta--><?php */?>
  46.         </div><!--#post-# .post-->
  47.  
  48.         <?php comments_template( '', true ); ?>
  49.  
  50.     <?php endwhile; ?>
  51.    
  52.    
  53. </div><!--#content-->
  54. </div>
  55.  
  56.  
  57. <?php get_footer(); ?>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement