M
M
Maxim Stepanov2015-11-07 00:52:05
WordPress
Maxim Stepanov, 2015-11-07 00:52:05

Who knows how to implement a search for custom posts in the wordpress admin panel by arbitrary fields (specifically, by the acf plugin and its fields)?

In fact, it is necessary that the usual search for posts in the admin panel become advanced. At the moment, the search works on custom post types, but it only works on title and description (i.e., on standard fields). And I want the search to be conducted on arbitrary fields.
ACF developers write that they have not thought through this functionality and just shrug. I tried to find any plugin or piece of code that could complement the current WordPress search, but I did not find it.
Who can faced it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2015-11-07
@HeadOnFire

ACF stores data in wp_postmeta. Filter the query by adding meta_query to it. Well, or through posts_where. See here and here . There is even a plugin .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question