i want to filter posts from a custom post type in admin based on a meta field. i tried several ways ( here, here and here). It works in each case, BUT i have to click twice on the filter button.

At the the first filter action the option in the dropdown menu is well selected but there is no result. Parameters of URL are :


Than i click again on the filter button and it works. Parameters of URL are :


it works when i remove the search parameter :


Would you have an idea to get it work ? Thank you


Solved ! The bug was coming from an other snippet about to extend search to custom field :) Merry Christmas !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.