get the tags wordpress PHP
-
hello guys I have this code from wordpress CODEX
<?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ' #'; } } ?>
And I split the tags with #
And there is the tags (wordpress #codex #howto #blabla #)
The dash separates the tags!!!
How can I put the # before each Tag instead separating the tags with the dash
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get the tags wordpress PHP’ is closed to new replies.