• Resolved kevinm21

    (@kevinm21)


    Is it possible to use the global variable (date) for “on” and “off” time restrict?

    variables:
    [global_variable variable_name=’DISPLAYFROM’] = 11/16/2015
    [global_variable variable_name=’DISPLAYTO’] = 11/23/2015

    [time-restrict on=”[global_variable variable_name=’DISPLAYFROM’]” off=”[global_variable variable_name=’DISPLAYTO’]“]
    <h2 style=”text-align: center;”>Previous Week’s Data</h2>
    [/time-restrict]

    Result from above:
    ” off=”11/23/2015″]

    Thank you.

    https://www.ads-software.com/plugins/shortcodes-to-show-or-hide-content/

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

    (@thewanderingbrit)

    Hi,

    Is this a plugin that sets these variables? I’m pretty sure it wouldn’t work, but by all means try it out and report your progress.

Viewing 1 replies (of 1 total)
  • The topic ‘Global variable (date), inside of time restrict’ is closed to new replies.