Created
December 14, 2021 03:05
-
-
Save genesis16/2275619ced9a7956b0bfab7609dbd18f to your computer and use it in GitHub Desktop.
Vendor event template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Template Name: Vendor Event Template | |
Template Post Type: event | |
*/ | |
get_header(); | |
?> | |
<div id="primary" class="content-area bb-grid-cell"> | |
<main id="main" class="site-main"> | |
<?php if ( have_posts() ) : | |
do_action( THEME_HOOK_PREFIX . '_template_parts_content_top' ); | |
while ( have_posts() ) : | |
the_post(); | |
do_action( THEME_HOOK_PREFIX . '_single_template_part_content', 'page' ); | |
endwhile; // End of the loop. | |
else : | |
get_template_part( 'template-parts/content', 'none' ); | |
?> | |
<?php endif; ?> | |
</main><!-- #main --> | |
</div><!-- #primary --> | |
<?php | |
if ( is_search() ) { | |
get_sidebar( 'search' ); | |
} else { | |
get_sidebar( 'page' ); | |
} | |
?> | |
<?php | |
get_footer(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment