Dynamic Shortcode Widget for Elementor plugin let you to add custom shortcode with simple input field. It provides an easy to use interface for managing attributes for your shortcode.
Get started at http://wordpress.org/plugins/dynamic-shortcode-widget-for-elementor/
function custom_shortcode( $atts ) {
$attributes = shortcode_atts( array(
'name' => 'world'
), $atts );
return '<h1>Hello ' . $attributes['name'] . '!</h1>';
}
add_shortcode( 'helloworld', 'custom_shortcode' );
Shortcode: [helloworld]
Outputs "Hello world!"
Shortcode: [helloworld name=”Bob”]
Outputs "Hello Bob!"
- The plugin is licensed under the GPLv2 or later:
-
v0.4.0
- Support the latest WordPress & Elementor
-
v0.3.1
- Support the latest WordPress & Elementor
-
v0.3.0
- Added WYSIWYG option for the type of input fields
-
v0.2.1
- Escape only with qoute characters instead of html
-
v0.2.0
- Added URL option for the type of input fields
-
v0.1.0
- Plugin announced
- Added image option for the type of input fields