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 results based on user-role logged in

Viewing 3 posts - 11 through 13 (of 13 total)
  • Mitchel van Eijgen
    #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 Moderator
    #154180

    Can we close this thread for now then?

    Mitchel van Eijgen
    #154408

    Yes, thanks! ????

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

The topic ‘Filter results based on user-role logged in’ is closed to new replies.