WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode inside another shortcode's attributes? (2 posts)

  1. mamouneyya
    Member
    Posted 3 years ago #

    Hi,

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

  2. s_ha_dum
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags