Tagged: comma, custom taxonomy, separator
Hi guys,
I need a help on figuring tis out.
I create 3 custom taxonomy for the posts. You can see it on this image. https://ibb.co/tKGT8V8
All good, except on the front end when there are several inputs from the main WordPress taxonomy and the custom taxonomies, there is no comma when one ends and the other starts. Look at image 2 https://ibb.co/n3GkYB4 and 3 https://ibb.co/mqnTd7b.
Can you guys help me ?
Thanks
Hey Kyle,
Sorry for the late reply, please link to the element so we can examine closer.
Best regards,
Mike
Hi Mike,
Thanks for replying ;)
I created this page to build our own layout and used the element “Blog Posts”.
I added a link to the page, if you check the first post you can notice it. Let me know if you need admin access to it .
Thanks for the help
Cheers
Hi,
Thanks, I found that we can add the commas to the links with this css:
.blog-categories.minor-meta a + a:before{content:', ';}
but this doubles some of the commas, are you able to remove the the custom taxonomies commas?
Best regards,
Mike
Hi Mike,
thanks for the reply!
I used your code and was able to remove the other commas.
I used this, (i’m leaving it here so if someone also needs it – ) shortcodes/postslider.php file and find
$cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
and change it to
$cats .= get_the_term_list($the_id, $taxonomy, '', ' ','').' ';
And it worked like a charm.
Thanks again.
Cheers
Hi,
Thanks for sharing your solution. We will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)
Best regards,
Mike