Oh man, just tried something else which was so easy that I just thought it wouldn’t work but I gave it a try and it works.
Thanks anyways 😀
<?php $userInfo = geoip_detect2_get_info_from_current_ip();
if ($userInfo->country->isoCode == 'US'){
echo "From <span class='price'>$"; the_sub_field('package_price_us'); echo "</span>/mth*";}
else {
echo "From <span class='price'>£"; the_sub_field('package_price'); echo "</span>/mth*";}
?>
It definitely seems to have something to do with renaming the fields. I have deleted the ones that were affected and created them again with a new name all together. Working fine now.
Hi @James,
Thanks that’s good to know about changing the field name, it may be possible that my first issue is caused by this as well.
I have attached the two field groups that I’m having issues with. One is About Avius Content, which has a repeater called ‘About Content’ and within that is a repeater called ‘quote’, the entire Quote repeater’s fields disappear when clicking update.
On the second is Get In Touch, within that is a repeater called ‘offices’ and the only field I’m having issues with in that is ‘country’.
Thanks for your help!!
I’ve used the code above, but not showing still.
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.