• I’m trying to edit the php-code for generating the meta-links (date, tags, catagory..) in my blogposts. The problem is, I always gets a “|” between each group and I want to get rid of it, but I can’t find out were it is generated.

    The original code looks like this:

    case 'tag':
    $tags_list = get_the_tag_list( '', ', ' );
    if(!$tags_list) break;
    $result[] = '<span class="art-posttagicon">' . sprintf( __( '<span class="%1$s">Tagged</span> %2$s', THEME_NS ), 'tags', $tags_list ) . '</span>';
    break;

    I have tried different sytax for get_the_tag_list (before, between, after), but it only changes the “between”. I have also searched all my theme files for an “|”, to find out where it is generated. But I can’t find it.

    I don’t know that much about php, so please help…

Viewing 1 replies (of 1 total)
  • Any chance the “|” could be getting injected via css? Perhaps an :after pseudo-selector or maybe it’s even a right border? Just some ideas. The code snippet you pasted above doesn’t seem to be much help.

    I believe that it’s possible the $result array reference in line 4 of your snipped could also be getting transformed using php’s implode() function, where the separator could be a pipe.

    There’s a few ideas for you, I hope one of them helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove separator between meta in posts’ is closed to new replies.