Viewing 2 posts - 1 through 2 (of 2 total)
    • Author
      Posts
    • dashaluna
      Guest

      Hi,

      I was wondering if it’s possible to have a shortcode with a content. For example,

      [shortcode] Here is some content of the shortcode [/shortcode]

      Quite often shortcodes’ attributes are not enough and it’s required to have shortcodes with content within them.

      Thanks,

      Dasha

      Just enter %content% as Shortcode content and in the post use the shortcode,

      Code:

      [sc:myshortcode content=”Here is some content of the shortcode”]

      Thats all !!

    Viewing 2 posts - 1 through 2 (of 2 total)
    • The topic ‘Shortcode with content’ is closed to new replies.

    Subscribe for updates

    Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter