I would like to rotate between two entries each hour depending on the time of the day.

Any ideas on how to do this?


You could use the expressionengine current time variable in a conditional

{if {current_time format="%G"} < 12}
   {exp:channel:entries url_title="morning"}
   {exp:channel:entries url_title="evening"}
| improve this answer | |
  • If you don't wish to have 2 channel entries, you can pass the url_title through embeds – Johnathan Waters Jan 12 '15 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.