Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Search on Posts only problem in 4.7

$
0
0

Replies: 0

Hi Guys, before the 4.7 update I adjusted the code in wp-icludes/query.php so that the search would only search on posts. Now after updating to 4.7, I can see that pages are being included again.

With the previous version all I had to do was change some code in query.php and set it to search on posts only, changing the code $q[‘post_type’] = ‘any’; with $q[‘post_type’] = ‘post’;

Looking at the updated query.php file now I dont see the code anywhere.

Does anyone have any idea how I correct this to search on posts only again please?

James


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>