-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-cornhole.php
35 lines (30 loc) · 1019 Bytes
/
single-cornhole.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
* Template Name: Cornhole Single Post
* Template Post Type: cornhole-league
*/
get_header(); ?>
<div class="page-header">
<div class="container-fluid">
<div class="col-md-12">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1 class="display-3 text-center pg-title text-uppercase"><?php the_title(); ?></h1>
</div>
</div>
</div>
<div class="container">
<main class="main-content-area pt-3 pb-3" style="margin-top:0px;">
<small>Posted on: <?php echo get_the_date(); ?></small>
<?php the_content(); ?>
</main>
<div class="col-md-12 pt-3 pb-3 beer-tags shadow">
<?php the_tags('<span class="badge badge-secondary"><i class="fas fa-tags"></i> Related:</span> ', ', '); ?>
</div>
</div>
<?php if( ! is_page( array ('contact', 'events') ) ) {
get_template_part( 'parts/page', 'contact-us' );
}?>
<?php endwhile; else : ?>
<p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
<?php get_footer(); ?>