Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author vaakash

    (@vaakash)

    Hi @meir321,

    Yes, we can use multiple $$enclosed_content$$ placeholders inside the “shortcode content”.

    But all the placeholders will have the same value i.e because there is only one way to set a value ([sc name="abcd"]My content value[/sc])

    Thanks,
    Aakash

    Thread Starter meir321

    (@meir321)

    Thanks for letting me know. It would be a nice feature to have the ability to add multiple unique values.

    Plugin Author vaakash

    (@vaakash)

    Hi @meir321,

    Cheers ! Since we can pass only one “enclosed content” (i.e [sc name="abcd"]My content value[/sc]) this is the only way to do so.

    If you looking for more variables to pass, then you can try the custom parameters feature.

    More details here – https://www.aakashweb.com/docs/shortcoder/custom-parameters/

    Thanks,
    Aakash

    Thread Starter meir321

    (@meir321)

    Hi, thanks for the response. Custom parameters seems like what I need, but in my tests when I inserted a shortcode that had custom parameters setup into a page, the custom parameter does not show up. For example, I setup a parameter:

    [iframe src=”%%URL%%” width=”100%” height=”%%height%%”]

    But when I insert this shortcode into a page, instead of getting;

    [sc name=”iframe” URL=””, Height=””]

    I get the following:

    [sc name=”iframe” ][/sc]

    Please advise, thank you!

    Thread Starter meir321

    (@meir321)

    Hi, I’m following up, is there something to do about this? Thank you!

    Plugin Author vaakash

    (@vaakash)

    Hi @meir321,

    Sorry for the delay. I missed to follow up on this.

    The default value for “custom parameter” is an empty value. There is no difference in setting empty value or not adding the parameter itself.

    So it is not necessary to explicitly to set a value for the custom parameter to the shortcode.
    Hence, the “insert shortcode popup” does not add them to make it simple.

    Please let me know if I had answered your doubt.

    Thanks,
    Aakash

    Thread Starter meir321

    (@meir321)

    Hi, thanks for your responsee. If I do want to add a custom value every time as in my frame example, is there a way?

    Thank you

    Plugin Author vaakash

    (@vaakash)

    Hi @meir321,

    Yes, you can simply type them out or use the “insert shortcode popup” where you can fill the value for the custom parameters present in the shortcode content.

    Thanks,
    Aakash

    Thread Starter meir321

    (@meir321)

    I didn’t notice that dropdown option. Thank you for letting me know!

    Plugin Author vaakash

    (@vaakash)

    Cheers !

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

The topic ‘Double Enclosed Content’ is closed to new replies.