Remove related tags: st_remove_related_tags()¶
This feature display a list of remove related tags into tag view. It allow to remove one tag from URL. This function output a list only on tag view, else it display nothing.
If you don't wish to show remove related tags, but use them inside the loop, use st_get_remove_related_tags() function.
Basic Usage¶
<?php st_remove_related_tags(); ?>
Default Usage¶
'separator' => ' ',
'format' => 'list',
'notagstext' => ' ',
'xformat' => __('» <a href="%tag_link_remove%" title="Remove %tag_name_attribute% from search">Remove %tag_name%</a>', 'simpletags')
Parameters¶
format
(string) output format
- flat - (Default) tags are separated with spaces
- list - tags are inside non ordered lists containing class='related_posts'
- array - tags are inside a PHP array (use it with st_get_related_posts())
notagstext
(string) Specify the text to show when there is no related tags
xformat
(string) Extended links format. Available Markups :
- tag_link_remove - Replaced by the link with current tags except tags to remove
- tag_link - Replaced by the permalink of the tag
- tag_feed - Replaced by the RSS tag link
- tag_id - Replaced by the tag ID
- tag_count - Replaced by the use number (counter) of the tag
- tag_name - Replaced by the tag's name
- tag_name_attribute - Replaced by the tag's name, formatted for attribute HTML
- tag_rel - Replaced by rel tag markup (creates : rel="tag")
- tag_technorati - Replaced by Technorati tag link
- tag_flickr - Replaced by Flickr tag link
- tag_delicious - Replaced by Del.ici.ous tag link