Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created February 25, 2016 14:55
Show Gist options
  • Select an option

  • Save farookibrahim/3b7e3b106013cb2c7638 to your computer and use it in GitHub Desktop.

Select an option

Save farookibrahim/3b7e3b106013cb2c7638 to your computer and use it in GitHub Desktop.
Unicase CPT sport single template
<?php
get_header();
ob_start();
while ( have_posts() ) : the_post();
do_action( 'unicase_single_post_before' );
get_template_part( 'templates/contents/content', 'single' );
/**
* @hooked unicase_post_nav - 10
* @hooked unicase_display_comments - 10
*/
do_action( 'unicase_single_post_after' );
endwhile; // end of the loop.
$output = ob_get_clean();
$layout_args = array( 'main_content' => $output );
unicase_get_template( 'layouts/layout-fullwidth.php', $layout_args );
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment