• filipecarmona

    (@filipecarmona)


    So far i’ve managed to use attributes from the shortcode like so
    [my-sc atrib="value"] as {{atrib}}
    However, is there any way to access something like
    [my-sc]content[/my-sc]
    in this plugin? I tried the documentantion links but they seem to be offline for a while, have you considered moving the docs to github?

    https://ww.wp.xz.cn/plugins/my-shortcodes/

Viewing 1 replies (of 1 total)
  • You can add code to PHP tab.
    Example:
    function custom_add_shortcode( $atts, $content = “” ) {
    return “<my-sc> $content </my-sc>”;
    }
    add_shortcode( ‘my-sc’, ‘custom_add_shortcode’ );

Viewing 1 replies (of 1 total)

The topic ‘use content in between shortcode tags’ is closed to new replies.