Dynamically generate category id and store in variable
What is stores_47 exactly? A variable name? Shouldn’t it be $stores_47 instead? I don’t understand what you want to do here, but I think you’re looking for variable variables. Try this: <?php $cat_id = 47; $value = get_field(‘extended_store_descriptions’, ${ ‘stores_’ . $cat_id } ); echo $value;