Languages: English • post taxonomies 日本語 (Add your language)
Retrieve all taxonomies of a post with just the names.
<?php get_post_taxonomies( $post ); ?>
<?php $taxonomy_names = get_post_taxonomies( ); print_r( $taxonomy_names ); ?>
will typically output:
Array ( [0] => category [1] => post_tag [2] => post_format )
Since: 2.5.0
get_post_taxonomies() is located in wp-includes/taxonomy.php
.