Support » Plugins » [Relevanssi] says "0 search results" when there are results

  • Hi,

    I really like the Relevanssi plugin but there’s a little problem.

    Above the search results it says “0 search results” even though there are results.

    See for example – http://publicdomainreview.org/?s=victorian – although there are 14 results it says “0 search results”.

    Any ideas about what could be going wrong?

    Thanks for your time,

    Adam.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mradamrgreen

    (@mradamrgreen)

    ahh.. is it perhaps to do with this?: (from their WordPress plugin site)

    Displaying the number of search results found
    The typical solution to showing the number of search results found does not work with Relevanssi. However, there’s a solution that’s much easier: the number of search results is stored in a variable within $wp_query.

    Just add the following code to your search results template:

    <?php echo 'Relevanssi found ' . $wp_query->found_posts . ' hits'; ?>

    Yes, most likely it’s that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Relevanssi] says "0 search results" when there are results’ is closed to new replies.