Help with separate tags with get_the_tags
-
Hello how can i make in there are more tags to be shown like thie: tag1, tag2, tag3
I need to use this code<?php $posttags = get_the_tags(''); if ($posttags) { foreach((get_the_category()) as $category) foreach($posttags as $tag) { echo ' <a href="?cat='.$category->cat_ID . '&tdo_tag=' . $tag->name . '">' . $tag->name . '</a>,' ;} }?>
but how to separate each tag with comma?
thanks for help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Help with separate tags with get_the_tags’ is closed to new replies.