Title: [Plugin: Google Maps v3 Shortcode] php strings in shortcode?
Last modified: August 19, 2016

---

# [Plugin: Google Maps v3 Shortcode] php strings in shortcode?

 *  [logicaljack](https://wordpress.org/support/users/logicaljack/)
 * (@logicaljack)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-google-maps-v3-shortcode-php-strings-in-shortcode/)
 * I installed this plugin for my business directory. Currently each local business
   has their own page, and I wanted to add the map to it.
 * The pages are outside of the loop so I have had to use this instead of the shortcode:
 *     ```
       <?php echo do_shortcode('[map marker="yes" infowindow="<strong>Title</strong>"]'); ?>
       ```
   
 * What I want though is to be able to add strings into this shortcode, for example
   I have the title in a string called `$wpdir_title` which I would want to go in
   the infowindow.
 * How would I go about doing this?
 * [http://wordpress.org/extend/plugins/google-maps-v3-shortcode/](http://wordpress.org/extend/plugins/google-maps-v3-shortcode/)

The topic ‘[Plugin: Google Maps v3 Shortcode] php strings in shortcode?’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-maps-v3-shortcode.svg)
 * [Google Maps v3 Shortcode](https://wordpress.org/plugins/google-maps-v3-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-v3-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-v3-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-v3-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-v3-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-v3-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [logicaljack](https://wordpress.org/support/users/logicaljack/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-google-maps-v3-shortcode-php-strings-in-shortcode/)
 * Status: not resolved