• I’ve attempted to override the default # of posts shown in live results so it’s the full complement of results, not just the default 7.

    I’ve attempted to use this filter:

    add_filter( 'relevanssi_live_search_posts_per_page', 150 );

    It’s not having an effect, but I’m not sure I’ve got the syntax right.

    Also, would prefer if I didn’t have to set a hard number. Would like all the results to be available and the user can scroll through them as necessary. Is that possible?

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

    (@msaari)

    You can’t just return an integer; you need to add a function that returns an integer:

    add_filter( 'relevanssi_live_search_posts_per_page', function() { return -1; } );

    You can set posts_per_page to -1 to return all posts.

Viewing 1 replies (of 1 total)
  • The topic ‘Change number of posts shown in live results’ is closed to new replies.