Comments SaneChoiceLtd started the conversationSeptember 12, 2015 at 11:40pmDear All,We have noticed that when we use the Search feature, it brings back Price Tables within the results. (It also brings back pages and blogs but that is expected).Is there way to configure the search to only include Pages and Blogs?SaneChoice 895TheFox repliedSeptember 14, 2015 at 10:41amHello SaneChoice,If you want to do this you will have to modify the search.php file,You should be able to see line like this :elseif( get_post_type($post->ID) == \'portfolio\' ){If you want to remove or don\'t show anything when result is other than page or posts, remove all the content that is between the { }for example :elseif( get_post_type($post->ID) == \'portfolio\' ){ }elseif( get_post_type($post->ID) == \'pricetable\' ){ }That should do the trick.Do not hesitate to contact us if you have more questions or need more information.Regards--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme SaneChoiceLtd repliedSeptember 30, 2015 at 11:58pmThis is great - we will do this. Thank you. Please close the ticket. 895TheFox repliedOctober 1, 2015 at 9:48amYou\'re welcome!Do not hesitate to contact us if you have other questions.Regards--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme Sign in to reply ...
Dear All,
We have noticed that when we use the Search feature, it brings back Price Tables within the results. (It also brings back pages and blogs but that is expected).
Is there way to configure the search to only include Pages and Blogs?
SaneChoice
Hello SaneChoice,
If you want to do this you will have to modify the search.php file,
You should be able to see line like this :
elseif( get_post_type($post->ID) == \'portfolio\' ){
If you want to remove or don\'t show anything when result is other than page or posts, remove all the content that is between the { }
for example :
elseif( get_post_type($post->ID) == \'portfolio\' ){ }
elseif( get_post_type($post->ID) == \'pricetable\' ){ }
That should do the trick.
Do not hesitate to contact us if you have more questions or need more information.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
This is great - we will do this. Thank you.
Please close the ticket.
You\'re welcome!
Do not hesitate to contact us if you have other questions.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme