…is set. Like this: add_filter( ‘get_search_form’, ‘add_ld_topic_category’ ); function add_ld_topic_category( $form ) { if ( isset( $_GET[‘ld_topic_category’] ) ) { $value = esc_attr( $_GET[‘ld_topic_category’] ); $form = str_replace( ‘</form>’, ‘<input type=”hidden” name=”ld_topic_category” value=”‘ . $value . ‘” /></form>’, $form ); } return $form; } Add this function to your site….I set up a short coded search box to search my Learndash e-course for one specific category only: [ searchform ld_topic_category=“156” ] It works perfectly except one thing: if no results show, it takes you to the default WordPress page and presents you with the standard search box that no……longer searches category 156. This problem isn’t generally very hard to fix. The exact solution depends somewhat on the theme. In this case the theme used was Astra, and Astra makes this very easy by using the default WordPress search form powered by get_search_form(). We want to modify the search…