WordPress.org

Ready to get started?Download WordPress

Forums

Show/Hide Content at Set Time
[resolved] Combining expires and showafter (2 posts)

  1. BennyW
    Member
    Posted 1 year ago #

    If I have the scenario where I want some content to appear for a fixed amount of time in the future, how woudl i do it.

    eg, up until decemeber i wan text to say
    "Its not decemeber yet"

    [expires off="1 December 2012"]Its not december yet[/expires]

    Then in December say
    "Its the month of Xmas"

    [showafter on="1 December 2012"]Its the month of Xmas[/showafter]

    BUT, heres what I can't work out, hoe can i get that to go away after december so it just says
    "Xmas has passed, it will comeback soon"

    ????

    http://wordpress.org/extend/plugins/shortcodes-to-show-or-hide-content/

  2. Dave Clements
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm, I don't think that's something that you can achieve with this plugin, because I don't think you can nest the shortcodes, which is what you would have to do in order to create a condition which relies upon expires and showafter. Sorry!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.