Filter Bar – is there a limit in the number of venues it can display?

Home Forums Calendar Products Filter Bar Filter Bar – is there a limit in the number of venues it can display?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1030997
    Tony Bell
    Participant

    We use Filter Bar to allow our users the option to select specific venues. These display alphabetically but stop somewhere through the letter “T”. As we have approximately 1,900 venues in our region I was wondering if there is a limit to the number that can be displayed?

    The issue manifests itself when the venue filter is set to checkboxes (nothing appears beyond a point within the letter T), to auto-complete (I cannot find “White Horse” as a venue) and dropdown (nothing appears alphabetically beyond “The Fox Inn” – approx #1489 in an alphabetical list).

    Thanks in advance.

    Tony

    #1032153
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    There is a hard coded limit of 200 venues in the Filter Bar.

    I have a ticket in our system to add a filter to change that.

    For now you have to edit this file on each update of the plugin:

    plugins/the-events-calendar-filterbar/src/Tribe/Filters/Venue.php

    You can change this:

    'posts_per_page' => 200, // arbitrary limit

    To this to show all venues:

    'posts_per_page' => -1, // arbitrary limit

    Let me know if that works out.

    Thanks

    #1032164
    Tony Bell
    Participant

    Thank you once again Brian – that worked perfectly.

    Tony

    #1032173
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Filter Bar – is there a limit in the number of venues it can display?’ is closed to new replies.