relevanssi_hits_filter
-
Hi,
I tried hooking the “relevanssi_hits_filter” filter as described here: http://www.relevanssi.com/knowledge-base/using-relevanssi-without-a-search-term/
Within the filter I can use get_posts([‘post_type’ => ‘xyz’, ‘posts_per_page’ => -1]) and the page loads fine and shows pagination however the page takes about 20 seconds to load (we have about 15,000 posts of type xyz). But if I remove posts_per_page and let it use the default value of 25, pagination doesn’t show and it reports “found 25 records”.
Is there a way to tell relevanssi there are 15,000 records while not actually loading them all?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘relevanssi_hits_filter’ is closed to new replies.