Acceptable array args for tribe_show_month()?

Home Forums Calendar Products Events Calendar PRO Acceptable array args for tribe_show_month()?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #65968
    Amanda
    Participant

    Would it be possible to get a list of accepted array arguments that can be passed through to the function “tribe_show_month()”? I didn’t see anything other than the one example of ‘eventDate’ in the docs here:
    http://docs.tri.be/Events-Calendar/function-tribe_show_month.html

    I’m looking for something similar to how the function “tribe_create_event()” was documented in 2.X.
    https://theeventscalendar.com/support/documentation/the-events-calendar-advanced-functions-event-post-type/

    #66056
    Barry
    Member

    Hi Amanda,

    Generally speaking (at least at the present time) you will need to inspect the code to determine things like this – we do plan to beef up our documentation and add more detail, however that is a long term project and so realistically may take a while 🙂

    Arguments for tribe_show_month() seem to be:

    * eventDate
    * start_date
    * end_date
    * post__not_in
    * hide_upcoming
    * hide_upcoming_ids
    * posts_per_page
    * orderby
    * order
    * post_status
    * eventDisplay
    * no_found_rows

    Hope that helps!

    #765794
    danielvallsestella
    Participant

    Hi,
    I think we can also add basic WordPress arguments.
    For example, you can filter by category. But careful, categories for events are ‘tribe_events_cat’

    You can write:

    tribe_show_month( array( ‘tribe_events_cat’ => ‘my-events-category-slug’) );

    #766020
    Barry
    Member

    Thanks for sharing!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Acceptable array args for tribe_show_month()?’ is closed to new replies.