Home › Forums › Backend Issues (wp-admin) › Select field not showing 'selected' choice › Reply To: Select field not showing 'selected' choice
I’m using this function to convert the string and use the special chracters which the dropdown selector is having problems. Hope this can be fixed soon:
function select_wsafe_font($fs) {
if ($fs == "arial_bla") $fs = "'Arial Black', sans-serif";
if ($fs == "arial_hel") $fs = "Arial, Helvetica, sans-serif";
if ($fs == "centh_got") $fs = "Century Gothic, sans-serif";
if ($fs == "couri_new") $fs = "'Courier New', Courier, monospace";
if ($fs == "georgia") $fs = "Georgia, Serif";
if ($fs == "impact") $fs = "Impact, Charcoal, sans-serif";
if ($fs == "lucid_san") $fs = "'Lucida Sans Unicode', 'Lucida Grande', sans-serif";
if ($fs == "palatino") $fs = "'Palatino Linotype', 'Book Antiqua', Palatino, serif";
if ($fs == "tahoma") $fs = "Tahoma, Geneva, sans-serif";
if ($fs == "times_new") $fs = "'Times New Roman', Times, serif";
if ($fs == "trebuc_ms") $fs = "'Trebuchet MS', Helvetica, sans-serif";
if ($fs == "verdana") $fs = "Verdana, Geneva, sans-serif";
// Google Fonts
echo $fs;
} // END Selector Web Safe Font
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.