Forums Forums Search & Filter Pro Custom Search Results Page

Viewing 1 post (of 1 total)
  • Ross Moderator
    #34656

    Hi Scott

    To answer your questions:

    1) To get data from the current search you can use:
    http://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/

    So, from that link, the code would be

    <?php
    	//Get the search term
    	//replace '1526' with the ID of your search form
    	global $searchandfilter;
    	$sf_current_query = $searchandfilter->get(1526)->current_query();
    	echo $sf_current_query->get_search_term();
    ?>

    2) Which display method are you using? If you are using archive then it sounds like you have set your template up wrong (a little). This really depends on your theme, so go into your theme and take a look at other template files such as archive.php or search.php.

    Usually you should at least be starting with a get_header() and finishing with a get_footer() – but this is really theme dependent – https://codex.wordpress.org/Include_Tags

    Thanks

Viewing 1 post (of 1 total)