• Resolved feroz_bilal

    (@feroz_bilal)


    Hello,
    i have this code…i want to show a video with different timings and names otherwise it will show No DJ Is playing right now…..like this…

    [time-restrict-repeat type=”daily” ontime=”07:00:00″ offtime=”08:30:00″ onday=”Monday” offday=”Monday”]

    A

    [time-restrict-repeat type=”daily” ontime=”19:00:00″ offtime=”21:00:00″ onday=”Monday” offday=”Monday”]

    B

    [time-restrict-repeat type=”daily” ontime=”21:00:00″ offtime=”23:00:00″ onday=”Monday” offday=”Monday”]
    C

    [time-restrict-repeat type=”daily” ontime=”04:00:00″ offtime=”06:00:00″ onday=”Tuesday” offday=”Tuesday”]

    D

    [time-restrict-repeat type=”daily” ontime=”07:00:00″ offtime=”08:30:00″ onday=”Tuesday” offday=”Tuesday”]

    E

    [time-restrict-repeat type=”daily” ontime=”12:00:00″ offtime=”13:00:00″ onday=”Tuesday” offday=”Tuesday”]

    F

    [time-restrict-repeat type=”daily” ontime=”07:00:00″ offtime=”08:30:00″ onday=”Wednesday” offday=”Wednesday”]

    G

    [time-restrict-repeat type=”daily” ontime=”11:00:00″ offtime=”12:00:00″ onday=”Wednesday” offday=”Wednesday”]

    H

    [time-restrict-repeat type=”daily” ontime=”07:00:00″ offtime=”08:30:00″ onday=”Thursday” offday=”Thursday”]

    I

    [time-restrict-repeat type=”daily” ontime=”11:00:00″ offtime=”13:00:00″ onday=”Thursday” offday=”Thursday”]

    J

    [time-restrict-repeat type=”daily” ontime=”04:00:00″ offtime=”06:00:00″ onday=” Friday” offday=” Friday”]

    K

    [time-restrict-repeat type=”daily” ontime=”07:00:00″ offtime=”08:30:00″ onday=” Friday” offday=” Friday”]

    L

    [time-restrict-repeat type=”daily” ontime=”18:00:00″ offtime=”20:00:00″ onday=” Friday” offday=” Friday”]

    M

    [time-restrict-repeat type=”daily” ontime=”11:00:00″ offtime=”13:00:00″ onday=” Saturday” offday=” Saturday”]

    N

    [time-restrict-repeat type=”daily” ontime=”07:00:00″ offtime=”09:00:00″ onday=” Sunday” offday=” Sunday”]

    O

    <b>Here Comes the video<script>

    [/time-restrict-repeat]

    <b>if the above timings are not there it will show the content as below….</b>

    [time-restrict-repeat type=”daily” ontime=”08:31:00″ offtime=”18:59:00″ onday=”Monday” offday=”Monday”]

    [time-restrict-repeat type=”daily” ontime=”23:00:00″ offtime=”03:59:00″ onday=”Monday” offday=”Tuesday”]

    [time-restrict-repeat type=”daily” ontime=”04:00:00″ offtime=”06:00:00″ onday=”Tuesday” offday=”Tuesday”]

    [time-restrict-repeat type=”daily” ontime=”06:01:00″ offtime=”06:59:00″ onday=”Tuesday” offday=”Tuesday”]

    [time-restrict-repeat type=”daily” ontime=”08:31:00″ offtime=”12:00:00″ onday=”Tuesday” offday=”Tuesday”]

    [time-restrict-repeat type=”daily” ontime=”12:00:00″ offtime=”13:00:00″ onday=”Wednesday” offday=”Wednesday”]

    [time-restrict-repeat type=”daily” ontime=”13:01:00″ offtime=”06:59:00″ onday=”Wednesday” offday=”Thursday”]

    [time-restrict-repeat type=”daily” ontime=”08:31:00″ offtime=”10:58:00″ onday=”Thursday” offday=”Thursday”]

    [time-restrict-repeat type=”daily” ontime=”13:03:00″ offtime=”03:58:00″ onday=”Thursday” offday=”Friday”]

    [time-restrict-repeat type=”daily” ontime=”06:01:00″ offtime=”06:59:00″ onday=” Friday” offday=” Friday”]

    [time-restrict-repeat type=”daily” ontime=”08:31:00″ offtime=”17:59:00″ onday=” Friday” offday=” Friday”]

    [time-restrict-repeat type=”daily” ontime=”20:01:00″ offtime=”10:59:00″ onday=” Friday” offday=” Saturday”]

    [time-restrict-repeat type=”daily” ontime=”13:01:00″ offtime=”06:59:00″ onday=” Saturday” offday=” Sunday”]

    [time-restrict-repeat type=”daily” ontime=”09:01:00″ offtime=”06:58:00″ onday=” Sunday” offday=” Monday”]

    Sorry But No DJ is Online Right Now. Please Click Here

    [/time-restrict-repeat]

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

    (@thewanderingbrit)

    You need to treat each instance as its own shortcode, so you’re missing the closing shortcode for all but the last item. Add [/time-restrict-repeat] after each condition and it will generally do what you want.

    On the second set of shortcodes though, your start times should coincide with the ending time of the shortcodes above, so the first one should start at 08:30:00, not 08:31:00, otherwise nothing will appear between 08:30:00 and 08:31:00 (a small point, but will make things cleaner).

Viewing 1 replies (of 1 total)
  • The topic ‘Quick Help For Shortcode’ is closed to new replies.