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!!
This reply has been marked as private.
I’ve used the code above, but not showing still.