Useful WordPress Debug Code
I find these snippets to be useful for finding information about your posts, custom posts, pages, etc.
Go Backglobal $wp_query;
$tag = $wp_query->get_queried_object();echo “My taxonomy : <br /> <pre>”;
var_dump($tag);
echo “</pre>”;echo “<br /> Taxonomy id: “.$tag->term_id;
$terms = get_the_terms($post->ID, ‘newsletter_category’);
print_r($terms);