Home › Forums › WoodMart support forum › Search Box Results Search Box Results This topic has 4 replies, 2 voices, and was last updated 2 years, 2 months ago by Elise Noromit. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts April 18, 2022 at 9:18 am #369037 LionParticipant Sorry, the previous thread was closed, and I had to post here again. My problem is not solved yet. When I search sth in the search box and press enter, products show instead of pages. Please see the attached: https://ibb.co/4ggR2Gj Please see ticket #368049 Attachments:You must be logged in to view attached files. April 20, 2022 at 5:30 pm #369711 Elise NoromitMember Hello, Sorry for the delay. Please add this code to the functions.php of the child theme: function mySearchFilter($query) { if ($query->is_search && isset( $_GET['post_type'] ) ) { $query->set('post_type', $_GET['post_type'] ); } return $query; } add_filter('pre_get_posts','mySearchFilter'); If you have any questions please feel free to contact us. Best Regards April 20, 2022 at 5:43 pm #369713 LionParticipant I did. Unfortunately the problem is not resolved. April 20, 2022 at 6:39 pm #369731 LionParticipant Supposedly, you had set the default theme to parent theme. Now, I switched it to the child theme, and the problem is solved. Thanks. April 21, 2022 at 4:23 am #369807 Elise NoromitMember You are welcome! We are here to help. Wish you a wonderful day! Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to create new topics. Login / Register