Skip to content

Instantly share code, notes, and snippets.

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

  • Save farookibrahim/34d4d0d5f0154046e082 to your computer and use it in GitHub Desktop.

Select an option

Save farookibrahim/34d4d0d5f0154046e082 to your computer and use it in GitHub Desktop.
Unicase CPT sport loop template
<?php
get_header();
ob_start();
if( have_posts() ) {
get_template_part( 'loop' );
} else {
get_template_part( 'templates/contents/content', 'none' );
}
$output = ob_get_clean();
$args = array( 'main_content' => $output );
unicase_get_template( 'layouts/layout-fullwidth.php', $args );
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment