So I have been googling for quite some time now and I can't seem to solve this. A lot of sources refer to a file called the_tags.php but it's nowhere to be found. Can anyone point me in the right direction? Thanks.

1 Answer 1


It's not a php file, it's a core function: the_tags().

$before = '';
$seperator = ''; // blank instead of comma
$after = '';

the_tags( $before, $seperator, $after );
  • So where do I put this? I can't find the code anywhere in a template, so I suppose it goes in functions? Aug 13, 2012 at 14:01
  • this would go in your template in the loop, but adding this will just output another set of tags. you need to find where your template is outputting tags and edit that function.
    – Milo
    Aug 13, 2012 at 14:07
  • I'm using a child theme of twentyeleven, and still I can find no mention of "tags" anywhere! Aug 13, 2012 at 14:09
  • twentyeleven uses get_the_tag_list()
    – Milo
    Aug 13, 2012 at 14:24
  • Thanks for the find. I replaced every single comma that was in a $sep variable by a space, and it's fixed now. Thanks again! Aug 13, 2012 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.