Did you try this?
$paged1 = (get_query_var('page')) ? get_query_var('page') : 1;
Related Posts:
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- Custom WP_Query order by post_meta and (author) user_meta
- Duplicate Queries
- Add and in the header while looping over custom query in page template
- Transient pagination not working properly
- How to output different posts per page?
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Multisite pagination issue by multi query archive 404
- How to cache wp_query with pagination using transients?
- Transient api Caches confused
- Yoast primary category query modification
- Notice thrown when creating numeric pagination on custom query
- WP_Query custom order and pagination
- Unable to paginate a custom page query
- I am officially missing something about transient posts
- Pagination of custom page with custom fields query
- Why pagination is not working with tax_query param?
- Custom pagination (Title, date and teaser)
- Pagination is not working on custom query inside a custom home page template
- Pagination in custom query in a category page
- Horizontally paginate through sets of blog posts?
- Search results stuck on page 1
- order by numeric value for meta value
- WP_Comment_Query pagination, delving into the unknown
- Using get_posts vs. WP_Query
- Sort posts by category name and title
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- Highlighting Sub topic in a post?
- Pagination wont work with search results template [duplicate]
- Pagination Not working on Home Page with 2 Query
- Best Practice For Querying Grandchildren?
- how to retrieve specific product attribute value in an sql query?
- Two queries on the same page with pagination
- WordPress custom archive page
- WP_Query pagination not working in admin area
- Retrieve or Query Pages by ID
- How to prevent queried posts from being added to cache?
- How to implement time filter to show random post 1 month for one category and 3 months for other categories
- How to do a query on custom taxonomies that is uncategorised?
- Pagination working everywhere but the index page
- Empty tax_query array returns an empty array
- How do I search inside specific taxonomies in WordPress
- How to correctly pass values to wpdb->prepare()?
- Storing query variable and then using wp_reset_query
- Setting get_queried_object
- remove query arg from url after set query
- difference between like ‘%%%var%%’ and ‘%var%’
- How to set pagination to work with ‘/page/’?
- WP_Query Pagination on multiple-loop page breaks WP or doesn’t show up
- Sort query by author: 1 author, then others
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- How to duplicate 5 posts out of WP_Query results?
- WP_query sorting can’t sort danish letters (æ, ø, å)
- Slow queries on a huge database
- Pagination links missing for first link (1) and previous button? How to get pagination links to work?
- How to return a 404 when custom query matches nothing?
- Should wp_query automatic meta and term cache priming be used in an enviroment with an object caching
- Query with relation and one without relation using multiple taxonomies?
- How can I override one post and make it display content for another post?
- Append URL query to next post link in custom query
- Get multiple users with meta value in one query and populate WP_User class
- Pagination is not working with custom query inside a homepage template
- Display single most recent post in category on every page of category archive
- Shortcode for custom query not returning results when attributes are added
- Page navigation doesn’t seem to work when I add offset?
- How to filter a static post page with ajax and $wp_query
- WP_Query Pagination
- Post incorrectly excluded when using “category__in”?
- Reciving Error 404 blog/page/2/
- Display posts ONLY from the current logged in user and current week/year/month Elementor posts
- wordpress pagination wont render on custom page template even though its right under the loop like the documentation says so
- Pagination repeating posts on search results
- Any way to use FETCH_KEY_PAIR with $wpdb?
- Pagination for Category does not work
- Query against multiple locations within single custom post type post
- WP Query. Ordering posts by another post types meta
- How to make a search query if not found in post table then search in postmeta table?
- WP_Query about meta_key and its array value
- WordPress pagination not returning posts on second page
- Paginate nested query of child posts
- how to show more than 1 post into three columns query
- Using the same WP_Query for shop and widgets in WooCommerce shop
- How can I get all the posts that are related with a specific taxonomy term?
- custom query – offset to pagination
- Get a list of the last posts grouped by author and filtered by category
- When should you use WP_Query vs query_posts() vs get_posts()?
- How to query post ids liked by the Author
- wp_query pagination links producing 404
- Can’t get pagination to work with this WP_Query loop
- Pagination in custom loop [duplicate]
- Modify query after meta value
- paginate_links() with Custom Taxonomy
- Parsing External Table Arguments
- difference between methods of query
- Pagination problem with multiple loops on the same page
- Query posts by meta value and sort by another meta key
- how to use transient method?
- Show number of posts AND number on current page (cannot make it work)
- Advanced Search – Is this possible?