How to Display ID of Store in Template (PHP)
This is a bit of a theme modification, but hopefully one of the mods can answer quickly or anyone with PHP experience
Look at the number 47 in the code below. The rest of my code is working for me (displaying the content of a meta field from Advanced Custom Fields plugin on my store page), but I need to dynamically change that number 47 to whatever the current store page is.
Code:
<?php
$cat_id = 47;
$value = get_field('extended_store_descriptions', 'stores_' . $cat_id );
echo $value;
?>
Thanks so much!