• Resolved mrsbeam

    (@mrsbeam)


    I am trying to make a simple shortcode which is a nice box, with some text content. So far I’ve made a code that is used like this:

    [sc name="my-shortcode-box" content="Whatever text I want inside of my box, blah blah..."]

    Now this works well for most cases, but if I paste a URL link in the content parameter, the whole box disappears, say if I did

    [sc name="my-shortcode-box" content="Whatever text... <a href="google.com">this is a link</a>"]

    Am I doing this wrong? Or how can I do this?

Viewing 1 replies (of 1 total)
  • Plugin Author vaakash

    (@vaakash)

    Sorry for the late reply.
    It is not possible to to “HTML” in shortcode parameter.

    In 4.1.7 there is a feature called “enclosed shortcode content”, where you can use any HTML enclosed within the shortcode like

    [sc name="my-sc"] MY HTML [/sc]

    in your shortcode content, you can use

    $$enclosed_content$$

    Thanks,
    Aakash

Viewing 1 replies (of 1 total)

The topic ‘If a shortcode parameter contains URL, shortcode disappears’ is closed to new replies.