首页 WordPress函数大全 get_the_category_list()

get_the_category_list()

2020-05-01 / 5025阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_category_list( string $separator = '', string $parents = '', int $post_id = false )

Retrieve category list for a post in either HTML list or custom format.

描述

参数

$separator

(string)
(Optional)
Separator between the categories. By default, the links are placed in an unordered list. An empty string will result in the default behavior.

Default value: ''

$parents

(string)
(Optional)
How to display the parents.

Default value: ''

$post_id

(int)
(Optional)
Post ID to retrieve categories.

Default value: false

返回

(string)

大家谈论
    我的见解