• Resolved jtheogr

    (@jtheogr)


    Is it possible to use other other shortcode for date value or to pass date with query vars.

    [time-restrict off=shortcode]Please enter our competition[/time-restrict]
    [time-restrict on=”shortcode]Sorry, this competition has closed[/time-restrict]

    https://www.example.com/?date=01/01/2017

    I want to pass the date thru url and show or hide content.

    Thanks.

    • This topic was modified 7 years, 9 months ago by jtheogr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    Out of the box, it is not possible to do this. However, you could expand upon the plugin by grabbing the query var (using get_query_var()) before the shortcode is parsed and passing the query var to the shortcode for use as one of the attributes.

    Thread Starter jtheogr

    (@jtheogr)

    Hi Dave,

    Thanks for the response.

    I understand what are you talking but i don’t know how to integrate this in the plugin, could you please give me some help on this, i believe this is 2-3 lines of php code.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    I’m afraid that I’m unable to provide development services for free. If you wish to hire me to make this change, I would be happy to do that.

    Thanks

    Thread Starter jtheogr

    (@jtheogr)

    Ok there is no problem with this.

    Could you please send me a quote for this modification at my email.

    [email protected]

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date value from Other shortcode’ is closed to new replies.