I’m trying to add hashtags beside my post tags in WordPress.
With this code, it looks like : tag1, tag2, tag3
<?php the_tags( '<span class="meta-sep"> | </span><span class="tag-links">' . __( '', 'portfoliopress' ) . '</span>', ', ', '' ); ?>
But I’d like to change it to : #tag1, #tag2, #tag3
I tried to add # into this part
‘, ‘, ‘, ” ); ?>
but it gave me a fatal error. I don’t know PHP, but it seems like a simple task. Am I looking in the wrong place?
EDIT: to add the # to the link text: