Skip to content

Instantly share code, notes, and snippets.

@genesis16
Created December 14, 2021 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genesis16/2275619ced9a7956b0bfab7609dbd18f to your computer and use it in GitHub Desktop.
Save genesis16/2275619ced9a7956b0bfab7609dbd18f to your computer and use it in GitHub Desktop.
Vendor event template
<?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