E
E
Elio Don2018-03-26 02:16:15
WordPress
Elio Don, 2018-03-26 02:16:15

How to display your data from a table by day?

I will give an example, take for example a table with data
Day of the month | morning | lunch | evening |
12 | 07:00 | 13:00 | 19:00 |
13 | 07:10 | 13:30 | 19:02 |
14 | 07:05 | 13:20 | 19:03 |
15 | 07:07 | 13:70 | 19:05 |
etc. for a whole month or a couple of months, all these data are entered in a table (the user does not see them) or I will be imported from csv, xls, etc.
on the site page (the user sees) the same data is displayed only for the current day, i.e.
Day of the month | morning | lunch | evening |
14 | 07:05 | 13:20 | 19:03 |
as soon as the next day comes, the number changes and the data too, highlighting the upcoming time value is also acceptable.
and that's it (how exactly it is displayed does not matter, you can figure it out with the visual part), are there plugins for such an implementation or something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-03-26
@azerphoenix

Hello!
I won’t tell you if there are ready-made plugins, but something similar can be implemented with custom fields or even using the Advanced Custom Fields plugin. Of course, knowledge of PHP + WP Codex is required.
To store the above, you can use, for example,
https://www.advancedcustomfields.com/resources/dat...
You can use PHP code and the above field type to compare the current date and time and display a specific information. You can also format the date and time output to display only the time or only the date, for example. Details in the above documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question