Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author janizde

    (@janizde)

    You will have to determine the corresponding weekday and then look what the global $wp_opening_hours offers.
    Maybe I will implement a function that returns the hours of a specific day.

    Thread Starter a42

    (@a42)

    Hi Janizde

    To determine the weekday of today I would use the date(); function:

    $weekday = date('L');

    and the date today:

    $date = date("d/m/Y");

    But how to get the array of opening hours into a loop outside the context of the plugin puzzles me…

    I want to make a loop ten times using range (0, 10) where the starting point is the day of today…

    Cheers,
    Adam

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Opening hours in select box with date day’ is closed to new replies.