admin管理员组文章数量:1130349
Hello i would like to show my all tags as a tagcloud . But i want to show all my tags some of them i added manually and they are not connected with any article? Is there any way to do it
this code shows only tags which connected with the articles. i want to show all of them.
<?php
$args = array(
'taxonomy' => array( 'post_tag', 'category' ),
);
wp_tag_cloud( $args );
?>
Hello i would like to show my all tags as a tagcloud . But i want to show all my tags some of them i added manually and they are not connected with any article? Is there any way to do it
this code shows only tags which connected with the articles. i want to show all of them.
<?php
$args = array(
'taxonomy' => array( 'post_tag', 'category' ),
);
wp_tag_cloud( $args );
?>
Share
Improve this question
asked Nov 12, 2018 at 20:51
Ersin DemirErsin Demir
111 bronze badge
1 Answer
Reset to default 1If you'll take a look at wp_tag_cloud Codex page, then you'll se a list of all args that function takes.
On that list you'll see param called number that defines the maximal count of tags to show. It's default value is 45.
Later you can read that:
number(integer) (optional) The number of actual tags to display in the cloud. (Use '0' to display all tags.) Default: 45
So this should do the trick:
<?php
$args = array(
'taxonomy' => array( 'post_tag', 'category' ),
'number' => 0
);
wp_tag_cloud( $args );
?>
Hello i would like to show my all tags as a tagcloud . But i want to show all my tags some of them i added manually and they are not connected with any article? Is there any way to do it
this code shows only tags which connected with the articles. i want to show all of them.
<?php
$args = array(
'taxonomy' => array( 'post_tag', 'category' ),
);
wp_tag_cloud( $args );
?>
Hello i would like to show my all tags as a tagcloud . But i want to show all my tags some of them i added manually and they are not connected with any article? Is there any way to do it
this code shows only tags which connected with the articles. i want to show all of them.
<?php
$args = array(
'taxonomy' => array( 'post_tag', 'category' ),
);
wp_tag_cloud( $args );
?>
Share
Improve this question
asked Nov 12, 2018 at 20:51
Ersin DemirErsin Demir
111 bronze badge
1 Answer
Reset to default 1If you'll take a look at wp_tag_cloud Codex page, then you'll se a list of all args that function takes.
On that list you'll see param called number that defines the maximal count of tags to show. It's default value is 45.
Later you can read that:
number(integer) (optional) The number of actual tags to display in the cloud. (Use '0' to display all tags.) Default: 45
So this should do the trick:
<?php
$args = array(
'taxonomy' => array( 'post_tag', 'category' ),
'number' => 0
);
wp_tag_cloud( $args );
?>
本文标签: how can i add all my tags to tagcloud
版权声明:本文标题:how can i add all my tags to tagcloud? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749187615a2329649.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论