Hello,
There are over 10.000 posts in this site and visitor is adviced to use filters. The initial view is empty and gives results only after visitor chooses some filters. Problem is this: even in initial/empty view the pagination shows and it's endless! It paginates all those 10.000 posts. So what am I doing wrong?
You initially show no results (until a filter is applied) but the query still likely gets the unfiltered results, you just avoid outputting them.
The pagination controls work on the basis of what is queried (and don't know the results are not being shown).
Depending on how exactly you show no results initially, the solution would probably be to hide the pagination controls in exactly the same way (e.g. inside a conditional block).
Thank you Nigel. This got me into right direction. I placed the pagination in classic editor within loop editor after [wpv-items-found] and before <!-- wpv-loop-start -->.