• Resolved sharring

    (@sharring)


    I have relatively static posts (webpages) in the website. When I use Relevanssi to search, it does not include all posts in the results and instead puts a link at the bottom that says <Older posts. I want all pages(posts), no matter how old, to show in the results and not be relegated to “Older posts”. I thought it used to work fine, but I just noticed it is showing the “Older posts” link and is missing some of the posts that have the found item.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    That’s not Relevanssi, that’s your theme. Your theme dictates how many posts it wants Relevanssi to return.

    Either adjust your theme or WordPress reading settings to have archive pages show more posts, or add this to your theme functions.php:

    add_filter( 'relevanssi_modify_wp_query', 'rlv_show_more_posts' );
    function rlv_show_more_posts( $query ) {
        $query->set( 'posts_per_page', -1 );
        return $query;
    }

    This will make Relevanssi return all the posts it finds without any paging.

    Thread Starter sharring

    (@sharring)

    Thank you! I have followed your advice and it works fine now!! You are amazing.

    Plugin Author Mikko Saari

    (@msaari)

    Nice! If you haven’t already, consider leaving a review. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relevanssi – how to show all posts no matter how old’ is closed to new replies.