New Landing How can we help? Cardinal Search Results Display Incorrectly

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Cardinal
  • #232275
    blackbirddesignsolutions
    Member
    Post count: 10

    When I use the search feature on the website the title returns as “0 results for …” but results are returned. How do I fix this? or remove the title “results for”

    Attachments:
    You must be logged in to view attached files.
    #232349
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    This is caused by the Relevanssi plugin. It’s mentioned in their FAQ: https://wordpress.org/plugins/relevanssi/faq/

    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'; ?>

    Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register