• Resolved andersbuskas

    (@andersbuskas)


    Hi! I love your wp-plugin Opening Hours and it works great! I have a question though, is it possible to add the option to have the date-format added to the overview widget (settings?), right now it only shows the day (time format), but I would love to have the option to show the day and date such as “monday 9/4” now it only shows “monday” Once again thanks for a great plugin!

    Sincerely
    Anders

    The page I need help with: [log in to see the link]

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

    (@janizde)

    Hi Anders,
    this is currently not possible, as the overview model currently only knows of the weekday and not the date itself. I will probably add this option in a later release.

    One way to try at the moment (in code) is to alter the shortcode attributes with the op_shortcode_attributes filter. Then you would have to parse the dayCaption value in the $attributes['days'] array, calculate the corresponding date and then replace it with the date but this would probably be a bit hacky.

    I have added a issue on GitHub for this.

    Thread Starter andersbuskas

    (@andersbuskas)

    Ok! Thanks for a quick response!

    Hacking code is not for me, but I really hope you make an update for the plugin in the future (soon)

    Sincerly
    Anders

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing date_format in Opening Hours’ is closed to new replies.