Using Tags as Meta Keywords
-
I’m using this code to have tags as meta keywords:
<meta name="keywords" content="<?php if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ', '; } } ?>" />
It’s adding a comma as a separator between each keyword. How can I remove the comma that shows up after the last keyword?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using Tags as Meta Keywords’ is closed to new replies.