Skip to content

Instantly share code, notes, and snippets.

@drrobotnik
Created June 1, 2015 18:31
Show Gist options
  • Save drrobotnik/277ae4aba6f7c53ecc27 to your computer and use it in GitHub Desktop.
Save drrobotnik/277ae4aba6f7c53ecc27 to your computer and use it in GitHub Desktop.
template_part
$post_data = implode('-', array_filter( array( get_post_type(), get_post_format() ) ) );
get_template_part('header', $post_data );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment