Restaurant Timetable

Support General Restaurant TimetableResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28007
    picatabaibospicatabaibos
    Participant

    Hi,

    Is it possible to make a listing Timetable where you specify the Open time for each day of the week and on the front end what you show is the current day time and when hover over it show the rest of the days, for example:

    "Open now 10:00 – 19:00 (Today)"

    When over hover:

    "Monday 10:00 – 19:00"
    "Tuesday 10:00 – 19:00"
    "Wednesday 10:00 – 19:00"
    "Thursady 10:00 – 19:00"
    "Friday 10:00 – 19:00"
    "Saturday 10:00 – 12:00"
    "Sunday Closed"

    Thank you

    #28019
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It is possible but you need more custom code to do that. You can use the WordPress function current_time() to check the current time and show the message.

    #28022
    picatabaibospicatabaibos
    Participant

    Hi Long,

    What kind of custom fields do you recommend to make each day time interval?

    Thank you,
    João

    #28034
    Long NguyenLong Nguyen
    Moderator

    Hi,

    We don't have a field type that shows the real time when the users visit your site. You just need to use the PHP current_time() function or JavaScript function https://linuxhint.com/how_to_get_current_date_and_time_in_javascript/.

    #28110
    picatabaibospicatabaibos
    Participant

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.