Roger Stringer   About ▾

I'm Roger Stringer: a father, writer, developer, consultant, chef, speaker. Founder of TheInterviewr.

Quick Function: Search Custom Fields From wp-admin

 

Recently, I had to make it so you could filter posts in wp-admin by custom fields. By default, the search in wp-admin searches by title.

Add the following code to your functions.php file, and then you can search by custom field values in wp-admin:

It’s handy when you have a post type that uses several custom fields and you want to filter by the value instead of just the title, so enjoy this handy tool.

Filed Under: Code

Roger Stringer spends most of his time solving problems for people, and otherwise occupying himself with being a dad, cooking, speaking, learning, writing, reading, and the overall pursuit of life. He lives in Penticton, BC.

Connect: Twitter |  Google+ |  Buy Me A Cup of Coffee