Support

Account

Home Forums General Issues Remove the comma (,) in the line break. Reply To: Remove the comma (,) in the line break.

  • You have to show us your changed code if you want help, we aren’t psychic. But anyway, here is the modified code from your first example, assuming your field is now a taxonomy field with return value “Term Object”:

    
    <div class="audio-tags">
    <?php
    	$tags = get_field("etiquetas");
    	foreach($tags as $tag){
    ?>
    	<a href="<?php echo(esc_url(get_term_link($tag))); ?>"><?php echo($tag->name); ?></a>
    <?php
    	}
    ?>
    </div>
    

    And the adjusted CSS for this would be:

    
    .audio-tags {overflow: hidden;}
    .audio-tags a {
    	position: relative;
    	display: inline-block;
    	margin-right: .5em;
    }
    .audio-tags a:before {
    	content: '';
    	width: .25em;
    	height: .25em;
    	position: absolute;
    	background-color: blue;
    	border-radius: 100%;
    	left: -.5em;
    	top: 50%;
    	transform: translateY(-50%);
    }