M
M
MalGym2018-04-29 01:15:11
WordPress
MalGym, 2018-04-29 01:15:11

Why doesn't wp search find everything?

Hello !
I did a search on the wp website (the topic is my own)
Here is a link to the form files:
https://drive.google.com/open?id=1w-KXqOQf0KolQOKv...
Question:
the search is not looking for everything, but specifically, they are looking for only records, and pages and custom entries are not looking, what's the problem?
PS How can I do it WITHOUT plugins!!!
Thank you )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2018-04-29
@PavelK

Because WP doesn't know how to search for custom types.
If without plugins, then put hooks in functions.php and search as needed:

add_filter('posts_join', ...);
add_filter('posts_where', ...);
add_filter('posts_groupby', ...);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question