• Resolved someonebutwhere

    (@someonebutwhere)


    Hi there, this plugin is so useful, thanks!

    This time I need to have another shortcode enclosed within your one, but it does not parse…

    ie. [time-restrict off=”15-February 2017″][other-shortcode][/time-restrict]

    Is your plugin able to permit other shortcodes in its output – if so can you please point me in the right direction to achieve this, a snippit would be great =)

    Would be much appreciated, cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    Hi,

    This plugin does allow for enclosing/nesting other shortcodes. You can see that here, where whatever is inside my shortcode has shortcodes processed by do_shortcode(). I’m not sure if this is the way you wrote down the code, or the way it got pasted here, but I noticed that you have some “curly quotes” in your code. Make sure you use true double quotes. Also, I’ve never seen that date/time notation before. Make sure if it’s a supported format.

    Thread Starter someonebutwhere

    (@someonebutwhere)

    Hello, great support, thanks for your swift response – I’m on the other side of the globe, so got it a few hours later =)

    I’ve checked both those issues cheers, straight quotes and date format and changed but still no show on the front end, most strange.

    [time-restrict off="14-02-2017"][other-shortcode][/time-restrict]
    [time-restrict on="06-03-2017 12:00:00"]<i>File no longer available</i>[/time-restrict]

    Any other thoughts on what it could be?

    Thanks so much.

    (Btw, you might want to check your plugin page as I copied the date string from the second code block there.)

    Thread Starter someonebutwhere

    (@someonebutwhere)

    Hi, this was marked to resolved so you might have missed my last message.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hey there,

    Thanks for letting me know. The examples are in good shape: it just happens sometimes when you copy code around between different editors and when you paste code as text.

    Your latest shortcodes look perfect. And I’m baffled as to how it can parse one shortcode and not the other. My shortcode definitely allows and parses other shortcodes within it. Are you saying that when you use this shortcode, it parses the time-restrict shortcode, but not the other contained within? Or it parses neither shortcode?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Possible to enclose other shortcode?’ is closed to new replies.