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%);
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.