@Ivanko
1) bug of your code, code you've added cause javascript error
2) pagination works just on pagination, it does not make sense to keep page number in any other link or field except pagination.
1. I did not add any code into searh-gallery.php , above was just an example, if some one needs adsence between listings (it should works anyway) .
Try to check on demo site , if you switch ON adseance on SEARCH page - the button REFINE RESULTS not triggering on page
mysite.com/search it gives error in console until you continue browsing search and adsecnce JS gone....
2. may be a bit of misunderstanding. When you continue browsing search page - applying filters , switching to page no2 or page no3 the ADSENCE GONE, this is a part of income and it to be working well , as on other themes, the adsence must works on every search page...
BUT THIS IS WORKING IF AJAX OFF
item 1 is very important ...