Updates for part 2
This commit is contained in:
parent
fb8eaa1fda
commit
8c83a49a7c
15 changed files with 243 additions and 47 deletions
24
page-custom.php
Normal file
24
page-custom.php
Normal 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(); ?>
|
Loading…
Add table
Add a link
Reference in a new issue