• 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

  • The topic ‘Search on Posts only problem in 4.7’ is closed to new replies.