Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Add this code to the functions.php inside your active theme folder.

    function wpsl_custom_search_input() {
    
        $search = isset( $_REQUEST['zip'] ) ? ( esc_attr( $_REQUEST['zip'] ) ) : '';
    
        return $search;
    }
    
    add_filter( 'wpsl_search_input', 'wpsl_custom_search_input' );

    This will set the passed value in the input field.

    Thank you Tijmen,

    I am wondering if there is a way for the search to automatically complete after the zipcode is populated by the query string?

    Thanks!

    +1 on the ability to search automatically after the zipcode is populated via query string.

    Any input on how this can be achieved? @tijmensmit

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I pass the zip code using url parameters?’ is closed to new replies.