Home › Forums › Front-end Issues › Color picker set in "Edit Category" don't show in front-end. › Reply To: Color picker set in "Edit Category" don't show in front-end.
Hi @elliot !
I use code below, I want to use the_field(‘color’) in “Edit Category”.
<span class="categorys font-s" style="background-color:<?php the_field('color'); ?>"><?php the_category(' ') ?></span>
It’s in single.php and index.php , and other fields are working fine.
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.