I think, I found a solution by gmazapp. At least, it worked for me. It’s a little hacky-ish, but does the job pretty good, so I’m sharing it, if someone will be looking for the same thing in the future.
Related Posts:
- Post_count only shows the number of results per page
- Pagination not working for Custom search form & custom result template
- Pagination broken when merging search results with additional WP_Query
- Pagination wont work with search results template [duplicate]
- Search – Ajax – Alter Query Parameters with Pagination
- wp_query ‘s’, search filter with pagination is not working
- WordPress pagination not working on template search.php
- Cutom wp_query for geolocation search, pagination not working
- How do I get my custom query to work with search results after the first page?
- How to filter a static post page with ajax and $wp_query
- Pagination repeating posts on search results
- WordPress search page pagination displaying but not functional
- Search results stuck on page 1
- Find out total number of pages in global query on archive page?
- WordPress Pagination Not Working – Always Showing First Pages Content
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- Pagination returns 404 after page 20
- Combining two wordpress queries with pagination is not working
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Tracing the life of a query
- next_posts_link not working for loop called with ajax
- Pagination shows 404 after a certain number of pages
- Query with pre_get_posts to get pagination
- Pagination is not working using WP_Query
- Transient pagination not working properly
- How to bring specific post to front of wordpress loop?
- Intentionally exceed max_num_pages on main query without getting 404?
- How to output different posts per page?
- Multiple WP_Query loops with Pagination Not Working
- Posts loop with pagination on a single post page
- Custom pagination with WP_Query generating 404 error
- Modifying the Search Results
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Offset Page Loops and Pagination
- Custom Search Result Page displaying only 1 result.
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Search pages that are a child of the current page
- The pagination on index.php doesn’t work on a first page
- Include tags in WP_Query
- Custom Search Not Consistent with Results
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- WordPress pagination not working using WP_Query
- Extend product search with meta in WooCommerce
- posts_per_page not working for first page of pagination
- Custom post type archive pagination query issue
- Pagination only won’t work in author template
- wp query error while paging the posts
- wp_query search not taking keywords with together for multiple words
- “paged” in WP_Query returns 0 posts
- How to avoid bypass of search bar rules?
- Hide products in uncategorized category from search results
- How do you determine if a result in a search query is a post or a page?
- wp_query show all values
- Notice thrown when creating numeric pagination on custom query
- Second loop pagination changes URL, not content
- Ignore image urls in wp_query search
- Custom Homepage Pagination using WP_Query
- filter posts by meta key with pagination
- Ajax (jquery) wp_query pagination returns -1
- Function the_posts_pagination() not compatible with WP_Query arguments
- adding pagination to a foreach loop in wordpress
- How to prevent WP_Query from filtering on ‘s’ but keep ‘s’ for other purposes?
- Pagination of custom page with custom fields query
- Add dynamic search to paginated WP_Query
- pre_get_posts pagination not working
- Pagination not working on archive.php template?
- Multiple WP_Query args combinations according to post type
- Pagination inside the blog page not working
- Display the search results like the original pages
- Pagination on archive.php not working?
- How to use jQuery validation to set the search bar to accept only a specific input?
- Custom Query Pagination not working on static front page
- Order & Orderby clause not working with custom query
- Paginated Post List on Front Page
- How can I modify standard search query to include also ACF custom fields values?
- Pagination in WP_Query?
- 2 Loops on one page – pagination of 2nd loop ignore array of excluded posts
- Archive – Show Page Month Headers
- Query post Pagination Problem
- Pagination for custom query throws 404 errors on last pages [duplicate]
- Pagination is not working on custom query inside a custom home page template
- Need help setting up a search form for wordpress [duplicate]
- How to add archives (with pagination) to page template?
- No content found on page 2 of pagination with 1 post per page
- Ordering Custom WP_Query loop by meta key value with pagination
- Loop being strainge
- Pagination in custom query not working [duplicate]
- paginate_links() on page (shortcode output)
- Paginate wp_query while utilizing post__not_in
- Get next post when using pagination with WP_Query?
- Duplicate posts showing up in loop using infinite scroll
- Pagination showing same posts despite changing page
- Help with showing text when something is entered in my search bar
- Pagination on custom post type not working
- Filtering product search results using tags
- How does Show Posts based on a keyword search work in WP_Query
- Pagenavi with archive page