Support » Plugin: Super Search - Custom Post Types » Custom search template fix

  • Dharmaraj

    (@dharmarajiyer)


    Hello! Thank you for this great plugin. I wasn’t able to get the custom search template option to work. Guessing (perhaps wrongly) at the intended behavior, I could get the code to work with the following revision, starting on line 148 of “widget.super_search.php”:

    $template = locate_template( array(
                $_GET['archive_template'],
                'search.php',
                'archive.php',
                'index.php'
            ));
    
            return $template;
        }

    https://wordpress.org/plugins/eps-super-search/

Viewing 1 replies (of 1 total)
  • I had a similar problem, but had to remove the following condition:

    if( isset($_GET[‘tag-search’]) )

    There is no “tag-search” parameter, so it was never hitting the locate_template block.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom search template fix’ is closed to new replies.