• Resolved craigmckee

    (@craigmckee)


    Is there any way to display certain content on specific days? E.g. on Tuesday, Thursday, Friday and Saturday display x, on all other days display y?

    I get I can use else to display the “y” but I can’t seem to figure out how to do the Tuesday, Thursday, Friday and Saturday bit?

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

    (@thewanderingbrit)

    In your case, ignore using the else attribute, and instead, create a bunch of shortcodes on a weekly recurring basis, that alternate what they show. For instance, One that runs on Monday that shows Y, followed by one which runs on Tuesdays that shows X, then another on Wednesdays that show Y, etc.

    Thread Starter craigmckee

    (@craigmckee)

    Thank you for the prompt reply. I tried that but ended up with a load of whitespace so something like..

    My event

    My event
    My event
    My event

    This should show blank Monday, my event Tuesday, blank Wednesday, my event Thursday – Saturday if that makes sense.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Don’t add paragraphs between sequential paragraphs. Put the shortcodes end to end, so the final closing square bracket of one short code (]) is immediately followed by the opening square bracket of the next (‘[‘).

    Thread Starter craigmckee

    (@craigmckee)

    I’ll give it a try, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Non consecutive days?’ is closed to new replies.