Title: Shortcode within a shortcode
Last modified: August 20, 2016

---

# Shortcode within a shortcode

 *  [treefrog911](https://wordpress.org/support/users/treefrog911/)
 * (@treefrog911)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-a-shortcode/)
 * Hi,
 * I’m using the following plugins:
 * Get Custom Field Values
    Comprehensive Google Map Plugin
 * Both generate shortcodes – one to display a Google map and the other to extract
   and display the value of a custom field.
 * I have a custom field on the page which is a postcode, accessible with this shortcode:
 * [custom_field field=”postcode” this_post=”1″ limit=”0″ between=”, ” /]
 * I have a map generated with this shortcode:
 * [google-map-v3 width=”250″ height=”250″ zoom=”12″ maptype=”ROADMAP” mapalign=”
   center” latitude=”0″ longitude=”0″ addresscontent=”wc1e9hj” showmarker=”true”
   animation=”DROP” maptypecontrol=”true” pancontrol=”true” zoomcontrol=”true” scalecontrol
   =”true” streetviewcontrol=”true” bubbleautopan=”false” markerdirections=”true”
   showbike=”false” showtraffic=”false” showpanoramio=”false”]
 * So I guess you can probably figure out what I want to do by now!… I want the 
   map to be generated using the value of the Postcode custom field.
 * This however doesn’t work:
 * [google-map-v3 width=”250″ height=”250″ zoom=”12″ maptype=”ROADMAP” mapalign=”
   center” latitude=”0″ longitude=”0″ addresscontent=”[custom_field field=”postcode”
   this_post=”1″ limit=”0″ between=”, ” /]” showmarker=”true” animation=”DROP” maptypecontrol
   =”true” pancontrol=”true” zoomcontrol=”true” scalecontrol=”true” streetviewcontrol
   =”true” bubbleautopan=”false” markerdirections=”true” showbike=”false” showtraffic
   =”false” showpanoramio=”false”]
 * Any other suggestions?
 * Thanks,
 * Dave

The topic ‘Shortcode within a shortcode’ is closed to new replies.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [treefrog911](https://wordpress.org/support/users/treefrog911/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-a-shortcode/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
