I'm using a Wordpress plugin to generate a form and rather than inserting the form on to the page using the content editor I'm adding it directly to my template.
The problem is that on my local version the id for my form is different to the id of the form on my staging site.
Locally I'm including this in my template to show the form:
<?php echo do_shortcode('[ccf_form id="122"]');?>
But on staging my form has an id of 259 instead, so what I was wondering was, is there a way of searching for a wildcard id? something like:
<?php echo do_shortcode('[ccf_form id="fnmatch(*)"]');?>
or alternately should I find the forms id in phpmyadmin and change it to 122?
I'm using the Custom Contact Forms plugin btw
Please Note
I realise that this question is probably best suited to being on the WP channel but since it's more of a pure PHP question I felt it was worth putting it on here too