WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Displaying a widget on a specific day/timezone (2 posts)

  1. comicstackca
    Member
    Posted 7 months ago #

    Hello all,

    I've been playing around with the code for Widget Logic specifically trying to have a widget appear on Wednesdays only at 7PM CST. I'm not as php savy as I'd like to be so while I know some of the code to do it, I'm not sure how to put it all together.

    Any help would be greatly appreciated!

    Thanks

    http://wordpress.org/plugins/widget-logic/

  2. comicstackca
    Member
    Posted 7 months ago #

    This is what I've got so far to have it display at 7PM but I believe that this will make the widget go live for anyone looking at it at 7PM locally and not be dependant on what timezone the person is in:

    $hour = date_i18n('G'); if ($hour > 18 && $hour < 20) return true;

Reply

You must log in to post.

About this Plugin

About this Topic