Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

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

the_tags( $before, $seperator, $after );
?>
share|improve this answer
    
So where do I put this? I can't find the code anywhere in a template, so I suppose it goes in functions? –  Bram Vanroy Aug 13 '12 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 '12 at 14:07
    
I'm using a child theme of twentyeleven, and still I can find no mention of "tags" anywhere! –  Bram Vanroy Aug 13 '12 at 14:09
    
twentyeleven uses get_the_tag_list() –  Milo Aug 13 '12 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! –  Bram Vanroy Aug 13 '12 at 14:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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