Why search on wp is not looking for everything?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
Hello !

Did a search on the wp site ( theme a )
Here is a link to a file of the form :
https://drive.google.com/open?id=1w-KXqOQf0KolQOKv...

Question:
search is not everything , but specifically , they are looking for only the records and pages and custom records are not looking for what the problem is ?
P. S how can I do it WITHOUT plugins!!!

Thank you )
by | 8 views

1 Answer

0 like 0 dislike
Because WP did not know how the custom types to look for.
If no plugins, then put the hooks in functions.php and seek as needed:
add_filter('posts_join', ...); add_filter('posts_where', ...); add_filter('posts_groupby', ...);
by
110,608 questions
257,186 answers
0 comments
35,536 users