Hey I'm currently using wordpress to create a website and as I'm new to PHP I'm having some trouble adding an integer into a shortcode command. This is the code I'm currently using:
<?php $store_id = 1;
echo do_shortcode('[dokan-stores store_id= "%1$s"]',"$store_id"); ?>
When I use this code
<? echo do_shortcode('[dokan-stores store_id= "1"]'); ?>
Everything works fine however I can't get it to work with an embedded variable, I've tried lots of methods but none are working.
Thanks,
Charlie