[wp-hackers] Retrieving supported taxonomies for a given post type
Andrew Nacin
wp at andrewnacin.com
Thu May 26 21:27:14 UTC 2011
On Thu, May 26, 2011 at 11:22 AM, prasath nadarajah <n.prasath.002 at gmail.com
> wrote:
> Hi,
> get_post_types('','post') returns info about 'post' post type.
> But the taxonomy information is blank. Ideally this should return
> supported taxonomy object of a given post.
> Is it a bug in that function???
>
> Is there any function that returns supported taxonomy for a given post
> type??
Function: get_object_taxonomies( $object, $output = 'names' );
Usage: get_object_taxonomies( 'post', 'objects' );
Nacin
More information about the wp-hackers
mailing list