0

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

Any ideas on how to do this?

1

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}
{if:else}
   {exp:channel:entries url_title="evening"}
      ...
   {/exp:channel:entries}
{/if}
| 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.