Last active
January 4, 2016 01:49
-
-
Save robskidmore/8550945 to your computer and use it in GitHub Desktop.
Print out current post taxonomies in an html comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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