//wordpress 根据文章ID获取分类ID
$category=get_the_category( $post_ID );
$catid=$category[0]->term_id;
//wordpress 根据文章ID获取标签ID
$tags=wp_get_post_tags( $post_ID );
$tagid=$tags[0]->term_id;
查看完整内容:http://web.zhaicool.net/366.html
//wordpress 根据文章ID获取分类ID
$category=get_the_category( $post_ID );
$catid=$category[0]->term_id;
//wordpress 根据文章ID获取标签ID
$tags=wp_get_post_tags( $post_ID );
$tagid=$tags[0]->term_id;
查看完整内容:http://web.zhaicool.net/366.html