Tag Archives: shortcode

create shortcode and place anything inside


/* shortcode */
function display_my_shortcode($atts, $content, $tag){

//if called from the 'my_primary_shortcode'

shortcode
if($tag == 'my_primary_shortcode'){
return '<div class="myclasss">
--------
</div>';
}
}
add_shortcode

('my_primary_shortcode','display_my_shortcode');

Display

[my_primary_shortcode]

Advertisements

Plugin for shortcode generate in editor

=>Manage From Settings
=>Drage and Drop to delete shortcode.
=>Icon is avalable in all post and page editor.

https://wordpress.org/plugins/shortcoder/

%d bloggers like this: