Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Yes, this article explains how to do so.

    Thread Starter oterox

    (@oterox)

    Great, it works very good.
    What i don’t know is how to modify the values. For example, compare actual hour with opening hours and show if it’s closed or open, or show how many minutes until close.
    Any advice?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    This is possible, but a bit complicated to code.

    The returned hours data is wrapped in table, which makes it hard to compare hours.

    So to work around that you can use the wpsl_store_meta filter to grab the hours meta data again ( not wrapped in HTML ), and check the hours from the current day and compare it to the current hour.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding hours to wpsl_listing_template’ is closed to new replies.