Last active
February 19, 2019 17:28
-
-
Save awakekat/eb42ecaf2c4ab829ae67099181eb2139 to your computer and use it in GitHub Desktop.
Elementor Daily shortcode switching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $weekday = date('l'); | |
switch ($weekday) { | |
case "Monday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Tuesday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Wednesday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Thursday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Friday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Saturday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Sunday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment