Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Projects
- */
- get_header(); ?>
- <div id="primary">
- <div id="content" role="main">
- <header class="entry-header">
- <h1 class="entry-title"><?php the_title(); ?></h1>
- </header>
- <div class="entry-content">
- <?php the_content(); ?>
- <?php
- $args = array(
- 'post_parent' => $post->ID,
- 'post_type' => 'page',
- 'post_status' => 'publish',
- 'numberposts' => -1
- );
- $postslist = get_posts($args);
- foreach ($postslist as $post) :
- setup_postdata($post);
- ?>
- <div class="project">
- <a href="<?php the_permalink(); ?>"><?php if( has_post_thumbnail() ) the_post_thumbnail('Project'); ?></a>
- <div class="project-meta">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <p class="time"><?php the_time('F, Y') ?></p>
- </div><!-- project-meta -->
- <div class="project-summary">
- <?php the_excerpt(); ?>
- </div><!-- project-summary -->
- </div><!-- project -->
- <?php endforeach; ?>
- </div><!-- entry-content -->
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement