WordPress.org

Ready to get started?Download WordPress

Forums

Outerbridge Nested Shortcodes
[resolved] Cant get it to work (4 posts)

  1. evette23
    Member
    Posted 1 year ago #

    This looks like what im looking for but it doesn't work sadly.

    Im trying to insert a shortcode within another shortcode like below:
    [currency_code="USD" price="[shortcode]" type="_xclick" button="custom-05.png"]. Realy hope to get this working.

    http://wordpress.org/extend/plugins/nested-shortcodes/

  2. Outerbridge
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    Unfortunately you can't do that. You're trying to nest a shortcode inside a shortcode tag. You can only nest shortcodes inside (non-enclosing) shortcodes.

    For example:

    Allowed:
    [shortcode1]
    [shortcode2]
    TEXT
    [/shortcode2]
    [/shortcode1]

    Not allowed (what you're trying to do):
    [shortcode1 attribute1="[shortcode2 /]" /]

    Cheers,

    ^Mike

  3. evette23
    Member
    Posted 1 year ago #

    Hi Mike, thanks for the reply. Are there any workaround for ur plugin to work with this?

  4. Outerbridge
    Member
    Plugin Author

    Posted 1 year ago #

    Not that I know of. See for more information on shortcodes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.