Template shortcode variable with query
-
Hi
I tried adding a mysql query for the $address variable to call in the shortcode but it’s not working:
('[google_map version="classic" lang="en" link="yes" width="200" height="200"]'.$address.'[/google_map]');
This was the query I created in the variable:
$address = "select address from map where Title in (select post_title from wp_posts where ID = '29') AND active='1'";
Can someone help me with this please.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Template shortcode variable with query’ is closed to new replies.