I have installed Advanced Custom Fielts, and I have created custom fields such as email, phone etc. I put those in my footer.php, and the data is displayed only on the homepage.
Can I use ACF to create global variables?
My rule for that custom field is
'If Post Type is equal to post';
I get that data in footer.php like this
$phone_number = get_field('phone_number');
and Im displaying it like
<?php echo $phone_number; ?>
So basically when Im on my homepage, it is displayed correctly, when I go to other page(which has that same footer), data is not displayed. What can I do to display it on all pages?