Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Filter to change “Results per page”

Viewing 4 posts - 1 through 4 (of 4 total)
  • hagbard_2605
    #245788

    Hi,

    is there a Filter or another way to change “Results per page” when using the Custom Integration?

    My results are displayed in a grid and based on the actual template, I like to have 9 or 10 results, so there is no single item on the last line.

    Thank you

    Ross Moderator
    #245802

    Hi Severin

    You can use this filter:
    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
    (be sure to checkout the github link for a full example)

    This will give you access to $input_object['options'] which you can change dynamically to suit your needs.

    Thanks

    hagbard_2605
    #245812

    Hi,

    thank you for your quick reply. Unfortunately I do not find the option to change between 9 or 10 results per page.

    I am trying to change the value defined on the “General” tab in my filter’s settings: “Results per page”. I have no idea how to do that using the filter you mentioned.

    Would be great, if you can give me another hint.

    Thank you and all the best

    Ross Moderator
    #245831

    Ahhh, I thought you meant you wanted to modify the “results per page” field that you can add to your search form.

    If you want to dynamically change any query values, you can do:
    https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments

    So you would change:
    $query_args['posts_per_page'] = 15

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.