Get day of current query

Home Forums Calendar Products Events Calendar PRO Get day of current query

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #936859
    alliglass
    Participant

    I have a custom day view and I only want the current day plus the next three to be visible. To start I want to hide the previous and next day buttons to days that are outside of this window.

    How do I get the current day that is being displayed. I can go from there.

    Thanks!

    #936945
    Barry
    Member

    Hi there alliglass!

    A query var called start_date should be set, so, if you ensure the $wp_query global is in scope you can obtain the date via:

    $wp_query->get( 'start_date' )

    Does that help?

    #936985
    alliglass
    Participant

    Perfect! Thanks.

    #937544
    Barry
    Member

    My pleasure 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Get day of current query’ is closed to new replies.