To achieve this custom feature we will use very interesting and effective trick. It will not affect default wp-admin search. We will just enrich it by adding special case.
In order not to affect default search let’s set a rule when we search by meta field.
In my case, i am setting such rule. I will use # prefix when i want to find a post by meta field.
For example,
if i type “inventory” and press enter, default WP-Admin search would work.
![](https://elwpin.com/wp-content/uploads/2021/01/Screenshot-from-2021-01-01-23-52-50.png)
And if i type “#inventory” and press enter, it will look up into meta fields and show results by that data. Which is cool.
![](https://elwpin.com/wp-content/uploads/2021/01/image.png)
Now let me share small snippet which will bring this feature into your website wp-admin.
Continue reading “How to find posts by meta field inside your WP-Admin”