Side Area
Blog - Pim Ganzeboom
Freelance Web Developer in Antwerpen
Web Development, Webdesign, Web design, Antwerpen, Antwerp, Freelancer, Freelance, Front-End Developer, Frontend Developer, React
560
page-template,page-template-blog-masonry,page-template-blog-masonry-php,page,page-id-560,ajax_fade,page_not_loaded,,vertical_menu_enabled,select-child-theme-ver-1.0.0,select-theme-ver-3.2.1,wpb-js-composer js-comp-ver-4.2.3,vc_responsive
Including categories on WordPress search results page

Say you've added a few categories to your Wordpress back-end. The default Wordpress search displays only posts, but you would like to include your categories in the Wordpress search results as well. Include the following snippet in your search.php template, and you should be good...