Title: Wrap Shortcode with Advanced Custom Fields
Last modified: January 3, 2019

---

# Wrap Shortcode with Advanced Custom Fields

 *  Resolved [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/)
 * (@baldawayash15)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wrap-shortcode-with-advanced-custom-fields/)
 * Hey there,
    Can I wrap your plugin shortcode in an Advanced Custom Fields(ACF)
   plugin shortcode?
 * Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wrap-shortcode-with-advanced-custom-fields/#post-11049592)
 * Oh I didn’t know ACF had shortcodes .. interesting. Can you give an example of
   what you try to do?
 * It seems that pre-filling a value is not supported by ACF. Nesting shortcodes
   is possible in theory, but only with the [shortcode]inside[/shortcode]-Syntax.
   So without PHP this will not be possible, I guess.
 *  Thread Starter [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/)
 * (@baldawayash15)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wrap-shortcode-with-advanced-custom-fields/#post-11071575)
 * Hey there,
    ACF also provides shortcodes to display the field data using shortcode`[
   acf field="{$field_name}"]` which is same as `the_field()` . I was wondering 
   if we could wrap your plugin shortcode in an ACF field would it work?
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wrap-shortcode-with-advanced-custom-fields/#post-11074220)
 * I don’t understand, what are you trying to achieve?
 *  Thread Starter [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/)
 * (@baldawayash15)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wrap-shortcode-with-advanced-custom-fields/#post-11081082)
 * Hey there,
    Thanks for the help. I managed to find the solution for my problem.
   🙂
    -  This reply was modified 7 years, 4 months ago by [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Wrap Shortcode with Advanced Custom Fields’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/wrap-shortcode-with-advanced-custom-fields/#post-11081082)
 * Status: resolved