We'll create fresh WordPress site with Wrapping ShortCode installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Are you using shortcodes?
There is also a standard shortcode block in the default block editor.
But it can’t be used without writing code.
Also, you can’t enclose other blocks in shortcodes, so you have to write the HTML code.
This plugin provides a shortcode block. It is not just a shortcode, it is a shortcode block that wraps other blocks.
** Easy configuration **
This is available by simply selecting a shortcode that you have enabled in WordPress.
Shortcode arguments are also configurable.
These are configurable in the block editor sidebar.
Also, the selected shortcode name is displayed in the block on the editor.
** Nestable blocks **
This block can place blocks such as “paragraph” and “image”.
This blocks can also be nested.
For example, it is possible to repeat headings and paragraphs in combination with shortcodes that can list custom fields.
This block can set a “Comment Label”.
Write the specified HTML comment out before and after this block.
Useful for design adjustments.
If you don’t set it, it won’t be written in the HTML source.
** replacement keyword **
This block has some replacement keywords.
Keywords are used to display shortcode information.
For example, if you enter “%shortcode%” in the Additional CSS class, the selected shortcode name will be displayed in the CSS class.
This block itself does not output HTML tags.
Please use it together with “Group” block.
This plugin includes “commentout” and “meta-loop” as sample shortcodes.
There are many other shortcodes in the world.
Take advantage of useful shortcode assets in this block.
Child blocks are optional.
Child blocks can be placed inside the block.
It is also possible to use dynamic blocks.
The “Wrapping ShortCode” itself is also available for child blocks.
It is possible to use replacement keywords within child blocks.
“Wrapping ShortCode” itself has no HTML tags.
Use with “Group” block
List valid shortcodes within your WordPress site.
Select the shortcode you want to use.
*In the Pro version (paid), a shortcode filtering function is under development.
Arguments are optional.
Arguments can be set for the specified shortcode.
It is okay to mix unkeyed and keyed arguments.
It also supports the presence or absence of double quotes.
It is possible to use replacement keywords in arguments.
Commnet labels are optional.
Write the specified HTML comment out before and after this block.
If you don’t set it, it won’t be written in the HTML source.
It is possible to use replacement keywords in comment labels.
Additional CSS classes are standard items.
Additional CSS classes are optional.
It is possible to use replacement keywords within additional CSS classes.
Replace any of the following replacement keywords in the block with the appropriate values.
However, if the shortcodes or child blocks is nested, the replacement keyword will take precedence over the shortcodes or child blocks.
* %shortcode%: Selected shortcode name
* %shortcodeAttrs%: Arguments of the set shortcode
* %shortcodeStr%: Generated shortcode string
* %wscClass%: Additional CSS class
[commentout (arguments) ]comment here[/commentout]
Writes the contents of the shortcode as HTML comments out.
[meta-loop (arguments) ]template HTML[/meta-loop]
Template and repeat the content of her shortcode by listing the custom field keys for the post.
eg. [meta-loop sample1 sample2 sample3 order=random]
#%number%) %key%:%value%
[/meta-loop]
< div class=”no-%number%”>%key%:%value%