Support » Plugin: Pods - Custom Content Types and Fields » Auto Complete & List View limits results to 15

  • Resolved moxiesozo

    (@moxiesozo)


    We have a beer client that has 40+ Stout style beers.
    They have one beer called Stout.
    When we use the autocomplete field to search for stout. We do not get the “Stout” as a result, because the results are limited to the first 15.

    Is there a way to increase the limit, or allow Select2 to load more results so our client can find the beer that they are looking for ?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    You can try to filter it:

    
    add_filter( 'pods_form_ui_field_pick_autocomplete_limit', 'my_increase_pods_autocomplete_limit_filter' );
    
    /**
     * Increase the autocomplete limit used by Pods when someone enters text to search for matches.
     *
     * @param int Autocomplete limit.
     *
     * @return int Autocomplete limit.
     */
    function my_increase_pods_autocomplete_limit_filter( $limit ) {
        // Show the first 50 entries matched.
        return 50;
    }
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.