2020-05-01 / 5331阅 / 悠然
Retrieve post categories.
This tag may be used outside The Loop by passing a post id as the parameter.
Note: This function>get_the_terms().
(int)
(Optional)
default to current post ID. The post ID.
Default value: false
(WP_Term[]) Array of WP_Term objects, one for each category assigned to the post.