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
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?
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.