Despite the fact I googled a lot, I’ve not found the answer to a very simple question :
I have some posts with a custom field (i.e. supplier_name). I would like to be able to search and filter my posts according to this custom field. In other words, in the admin posts listing, I would like to have a search box (named “Supplier name”) where I can type in a value (ex. “IBM”) and then, click on a search button that will give me back all the posts that have a custom field named “supplier_name” and, if so, the value of the custom field will be “IBM”.
How can I do this ?
I coded a plugin just for that and never got around to publish it :
Usage:
In the dropdown you have a list of all custom fields, so just select the field you want to filter by and click filter. if you want to filter to a specific value of a custom field then select the field’s name , enter the value you want and click filter.