Описание
Displays a different home page based on the pages the user specified to show at different times of the day.
If there is a time period where no page has been assigned, it will use the page you select in Settings > Reading in the Your homepage displays option.
There are four ranges to specify a page:
— morning
— noon
— afternoon
— night
However, each hour selection covers the entire day so you don’t have to select all four: you can select three ranges, or two, or one.
Скриншоты
Установка
-
Install this plugin in the WP Admin by going to Plugins > Add New and searching for «time based content».
-
Once it’s installed, activate it.
-
Ensure you have four pages for this plugin, one for each moment of the day:
- one for the morning
- another for noon
- one more for the afternoon
- and a last one for the night
You’ll probably want to have a default page to display if the time ranges you specify pages don’t cover the entire day. If you don’t need to specify four pages you can specify three or two or one. Just start from the top because those takes precedence when deciding which page to show.
-
Go to the WordPress Reading settings page at WP Admin > Settings > Reading
-
Set Your homepage displays to A static page and select any page you’d like to display whenever you’re not displaying one of the specific pages for the times of the day. For example, if you specify that the night page will be displayed until 12:00 am, and the morning page will start displaying at 07:00 am, then this page will display betwen that time when no other page is assigned.
-
Go to the plugin settings page at WP Admin > Settings > Time Based Content
-
Select the time ranges and the page to display at each time.
Часто задаваемые вопросы
-
How do I contribute to this plugin?
-
Contributions are welcome at the plugin repo on GitHub.
Отзывы
Нет отзывов об этом плагине.
Участники и разработчики
«Time Based Content» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «Time Based Content» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.0.1
- Update paramaters passed to get the hours in WP Admin so it doesn’t throw an error.
1.0.0
- Release date: Jan 24th, 2021