2017-05-10, 05:06:47
Hi,
i'm using the "tags-and-numbers" example (http://mvlcek.bplaced.net/get-simple/i18.../tag-count) to display a list of categories.
Now i'd like to know if somebody can tell me how to show the tags labels as the link description instead of the tags name.
The reason is, i usually set the tags name in shortcuts while the label is what it is meant to be.
In special pages, the fields look like this:
tag name = pic_ls
tag label = Light and Shadow
The results are now: pic_ls(1).
I'd be pleased if it's possible to have here: Light and Shadow(1).
The important part of code is here:
Could somebody lend me a helping hand in how to achieve this?
Thank you very much in advance.
Shasaar
i'm using the "tags-and-numbers" example (http://mvlcek.bplaced.net/get-simple/i18.../tag-count) to display a list of categories.
Now i'd like to know if somebody can tell me how to show the tags labels as the link description instead of the tags name.
The reason is, i usually set the tags name in shortcuts while the label is what it is meant to be.
In special pages, the fields look like this:
tag name = pic_ls
tag label = Light and Shadow
The results are now: pic_ls(1).
I'd be pleased if it's possible to have here: Light and Shadow(1).
The important part of code is here:
PHP Code:
<?php
global $args;
$tags = return_i18n_tags();
foreach ($args as $arg) {
$tag = strtolower($arg);
if (count($tags[$tag]) > 0) {
?>
<a href="<?php echo htmlspecialchars(find_i18n_url('search-results',null)); ?>?tags=<?php echo urlencode($tag); ?>">
<?php echo htmlspecialchars($arg); ?> (<?php echo count($tags[$tag]); ?>)
</a>
<?php
}
}
?>
Could somebody lend me a helping hand in how to achieve this?
Thank you very much in advance.
Shasaar