RE: How to get all tags name in wordpress?

How to get all tags name in wordpress?

Rudradeep Senior Developer Asked on March 4, 2017 in WORDPRESS.
Add Comment
1 Answers

<div class="tags_cloud_area">
<?php

$posttags = get_tags();

if ($posttags) {?>

<?php foreach($posttags as $tag) {?>

<a class="tag_cloud" href="<?php echo get_tag_link($tag->term_id); ?>"><?php echo $tag->name;?></a>

<?php }?>

<?php }?>
</div>

Team Leader Answered on March 9, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.