Skip to content

Instantly share code, notes, and snippets.

@robskidmore
Last active January 4, 2016 01:49
Show Gist options
  • Save robskidmore/8550945 to your computer and use it in GitHub Desktop.
Save robskidmore/8550945 to your computer and use it in GitHub Desktop.
Print out current post taxonomies in an html comment
<?php
function get_current_post_taxonomies(){
global $post;
$taxonomy_names = get_object_taxonomies( $post );
?>
<!--<tt><pre><?php print_r( $taxonomy_names); ?></tt></pre>-->
<?php
}
add_action('wp_head','get_current_post_taxonomies');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment