Need function that will return true when viewing the "Event List" page

Home › Forums › Calendar Products › Events Calendar PRO › Need function that will return true when viewing the "Event List" page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12005
    Laura
    Member

    I found the function in your documentation for “tribe_is_month” which returns true on the grid view page. Great. I’m struggling to find a function that returns true if it is the Event List Page though. Does one exist?

    I assumed “tribe_is_upcoming” would return true only on the event list page, but it returns true for pretty much everything, including venues, and single event pages which seems a bit odd to me. So I’m a bit stumped now how to determine if I’m on the Event List Page.

    #12020
    Laura
    Member

    Just to followup, I ended up figuring out a way to do it by writing my own custom query: if (!empty$wp_query->query_vars[‘eventDisplay’]) && $wp_query->query_vars[‘eventDisplay’] == ‘upcoming’)

    #12066
    Rob
    Member

    Hi Laura. Great to hear you got this figured out (before we even had a chance to hit your thread!). If anything else comes up, please let us know and we’ll do what we can to assist.

    #974709
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Need function that will return true when viewing the "Event List" page’ is closed to new replies.