• Resolved rifel

    (@rifel)


    Hi,

    I like shortcoder but, unless I missed something, it doesnt close shortcode automatically right?

    Its a bit of a pain to have to type [/sc] after each enclosed content.

    Is there a way to automatically add the shorcode opener AND closer if any $$enclosed_content$$ parameter is in the shortcode?

    If not that would be a huge UX improvement if you could do that on next version

    Thanks

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

    (@vaakash)

    Hi,

    I understand, if the shortcode contains $$eclosed_content$$ we expect a closing tag to be there already.
    let me come up some idea to implement this.
    Thanks,
    Aakash

    Plugin Author vaakash

    (@vaakash)

    Hi, This is implemented in version 3.1.7+. Please do try the version.

    Is this still working in v4.1.9?

    I created a shortcode with the content…
    <div class=”callout”>$$enclosed_content$$</div>

    When I use the WP editor and insert the shortcode it outputs…
    [sc name=”Text Callout” ]

    Notice there is no [/sc] output.

    Am I doing something incorrectly?

    Plugin Author vaakash

    (@vaakash)

    Hi @datacode,

    I can explain how enclosed content works.

    You have to insert the parameter $$enclosed_content$$ in shortcode content. Example: <strong>$$enclosed_content$$</strong>

    Then while inserting shortcode in post, you have to do this,

    [sc name="tests"]My content [/sc]

    Now the enclosed content tag will be replaced with “my content” text.

    Please let me know if this is what you are doing and let me know further.

    Thanks,
    Aakash

    Thanks for the explanation. That is what I was doing. I was thinking the insert shortcode button would automatically also insert the closing [/sc] for me and I would just have to add the text between the open and close code.

    Now that I know I have to manually add the text AND the closing [/sc] I will do that.

    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Closing shortcode suggestion’ is closed to new replies.