Forums Forums Search & Filter Pro Filter results based on user-role logged in

Viewing 3 posts - 11 through 13 (of 13 total)
  • Anonymous
    #154070

    Hi Trevor!

    When I print the div, it appears in front of the filter. The $query_args are indeed an array of all filter-settings. When I do the same after redefining the query, it is an array with the newly defined arguments.

    Ah, I’ve figured it out. I had to combine the old and the new query-args. I’ve done this by renaming my query-args into $new_args. Before returning the $query_args I included this line. Now it seems to work. This is a little unclear in the documentation.

    $query_args = $query_args + $new_args;

    Thanks!

    ps. Thanks for editting, multiline code in Slack works with 3 code characters 🙂

    Trevor
    #154180

    Can we close this thread for now then?

    Anonymous
    #154408

    Yes, thanks! ????

Viewing 3 posts - 11 through 13 (of 13 total)