Updates for part 2

This commit is contained in:
Tania 2016-01-14 02:48:43 -06:00
parent fb8eaa1fda
commit 8c83a49a7c
15 changed files with 243 additions and 47 deletions

24
page-custom.php Normal file
View file

@ -0,0 +1,24 @@
<?php get_header(); ?>
<div class="row">
<div class="col-sm-12">
<?php
$args = array(
'post_type' => 'my-custom-post',
'orderby' => 'menu_order',
'order' => 'ASC'
);
$custom_query = new WP_Query( $args );
while ($custom_query->have_posts()) : $custom_query->the_post(); ?>
<div class="blog-post">
<h2 class="blog-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div> <!-- /.col -->
</div> <!-- /.row -->
<?php get_footer(); ?>