Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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