2016-03-08, 17:36:48
(2016-03-08, 16:06:05)abuhayyan Wrote: I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.
It does not output anything - you have to use the result - it is a map of tags to urls, e.g. (not tested):
Code:
<?php
$tags = return_i18n_tags();
foreach ($tags as $tag => $urls) { ?>
<span><?php echo $tag; ?> - <?php echo count($urls); ?></span>
<?php } ?>