• Im using Listify theme + WP Job Manager + FacetWP autocomplete filtering search on my homepage and would like to modify the script below, so when the user types the query he/she is redirected straight to the actual listing page instead of search results page. Besically, just want to skip search results step, because there should always be only one result. Link to my site.

    function fwp_redirect() {
                if ('get' == FWP.permalink_type) {
                    var query_string = FWP.build_query_string();
                    if ('' != query_string) {
                        query_string = '?' + query_string;
                    }
                    var url = query_string;
                }
                else {
                    var url = window.location.hash;
                }
                window.location.href = '<?php echo get_post_type_archive_link( 'job_listing' ); ?>' + url;
            }
  • The topic ‘[Plugin: WP Job Manager] Modify code to redirect users to listing page’ is closed to new replies.