Updated on September 06, 2016 This article provides the code for replacing the standard Genesis search form with a category-specific form on category archives which limits search results to Posts in current category and its sub categories. A search widget placed in Primary Sidebar, for example, may appear like this (with some customization covered below) on most pages: On category archive pages we are going to set it up like this: Doing a search in the above will show search results that are only limited to the entries of the current category and its child categories.
Step 1Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.