WordPress.org

Support

Support » How-To and Troubleshooting » Shortcode inside another shortcode's attributes?

Shortcode inside another shortcode's attributes?

  • Hi,

    Is there anyway I can use shortcode for one of the attributes of another shortcode? Something like: [FIRST_SHORTCODE title=[SEC_SHORTCODE]]

Viewing 1 replies (of 1 total)
  • If you wrote the parent shortcode– FIRST_SHORTCODE–, maybe. You’d have to extract the attribute that contains the second shortcode and run do_shortcode on it. No promises… interesting experiment though.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode inside another shortcode's attributes?’ is closed to new replies.