categories - Category list with postcount

Im total noob with wordpress, and would like to get some help with following problem.I Would like to make list of all ca

Im total noob with wordpress, and would like to get some help with following problem.

I Would like to make list of all categories and postcounts in category, something like this:

category1(2), category2(4), category3(7)

with hyperlinks to the category page. If someone could help me with this one with noob friendly answer i would appreciate it so much.

Im total noob with wordpress, and would like to get some help with following problem.

I Would like to make list of all categories and postcounts in category, something like this:

category1(2), category2(4), category3(7)

with hyperlinks to the category page. If someone could help me with this one with noob friendly answer i would appreciate it so much.

Share Improve this question asked May 20, 2019 at 17:38 user595846user595846 32 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You just need to use wp_list_categories function with param show_count set to true

https://developer.wordpress/reference/functions/wp_list_categories/

wp_list_categories( array(
'show_count' => true,
'title_li' => '<h2>' . __( 'Categories', 'textdomain' ) . '</h2>') );

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745479343a4629493.html

相关推荐

  • categories - Category list with postcount

    Im total noob with wordpress, and would like to get some help with following problem.I Would like to make list of all ca

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信