
wp-config.php文件——深入探讨如何配置WordPress
wp_get_post_cats ( $blogid = '1', $post_ID = 0 )
wp_get_post_cats: 这个函数为一个文章检索一个类别对象的数组。它接受一个文章的ID作为参数。
检索一个文章类别的列表。
function wp_get_post_cats($blogid = '1', $post_ID = 0) { _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_post_categories()' ); return wp_get_post_categories($post_ID); }