After a week of getting stuck, found out the solution.
I had to put an extra argument ‘showposts’ for my $eventposts and $newsposts.
Related Posts:
- Paginate Link generate additional #038; whenever my Url have multiple Query String
- WordPress Pagination Problem
- paginate_links and query vars
- How to edit or override a Core function?
- Add css class to Pagination?
- Highlight the first page pagination_links
- paginate_links URL
- Paging with category page
- How to focus to a specific div when page reloads by pagination?
- Why does paginate_links() reload the entire page? and can you make it reload only a specific div?
- bones_page_navi and pre_get_posts Action
- paginate_links adds strong element
- How to break the wp_link_pages in two lines
- Changing pagination list class
- Paged posts – how to use numbers and next/previous links?
- How to remove_query_arg() for paginate_links()
- paginate_links() don’t properly work in search.php?
- Getting paginate_links() ‘end_size’ to display none
- Paginate links with “ugly” and “pretty” permalinks?
- How to paginate attachments in a secondary query as gallery?
- Custom Search Page Pagination Not Working
- Pagination Not Displaying on Custom Term Archive
- Combining WordPress pagination functions for archives and search results
- Paginated pages are showing correct content but pagination links are not
- Edit format of Paginate_Links()
- Paginate_links won’t create the right links on a taxonomy filtered custom post type archive
- In pagination, change link for page 1 to homepage
- Can paginate_links() be customized for a specific category or tag?
- WP_QUERY loop, offset in the arguments and the paginate_links – can these work together?
- Paginate_links links not working accordingly to how I do query the page
- Custom post type archive page pagination
- Customizing comments pagination for bootstrap
- 404 on term taxonomy archive pagination only with some terms
- get_the_content_feed with paginated posts
- paging in WP_Query on static page
- Last page in pagination does not match max_num_pages – the overall post count is less according to pagination
- How to get URL for the first page of post archive
- How do you paginate a query grouped by month?
- get_next_posts_link not working without parameter max_num_pages
- Duplicate posts in paginated results
- Pretty urls for custom pagination
- pagination for single post by category
- Using Ajax in the prev_posts_link and next_posts_link
- Limiting number of visible links displayed with wp_link_pages
- search with pagination not working as expected
- Pagination Not Working on `WP_Query` Archive Page
- In Custom page – next_posts_link Not working while previous_posts_link is working
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- How to properly rewrite pagination rules for a CPT to avoid 404 error on /page/2
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination using paginate_links
- Later blog post pages give 404 error
- Custom admin page pagination permissions error
- paginate_links() Change the order of links
- Paginate_links only working on first page
- Give wp link pages it’s own template
- Pagination: Keep prev and next link even on the first/ last page
- Automatically adding a link to the next page link before ” tag in posts?
- How to add pagination to category templates
- On click some element i want to use some template
- How to Edit Ecommerce filters URL, h1, h2 , Title
- Pagination not working on custom post types with rewrite slug
- How to Show Next-Previous Link Only
- Help to modify wp_link_pages()
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- Pagination contents not changing in Front page WordPress
- How to add pagination in Terms
- Pagination not working – FrontPage
- Show number of pagination pages even when total under two
- Can’t Add Pagination
- paginate_links method doesn’t show second page of my custom wp_query
- Sidebar pagination posts not shown when sidebar is in single.php
- The pagination is working on Local, not on LIVE. why?
- Shortcode with pagination advancing multiple queries
- I want to create pagination for my custom post type archive that i am displaying with loop
- Paginate Links in Wp Query Shortcode
- Paginate nested query of child posts
- Extra pagination pages being wrongly generated
- Google Indexed sub pages in wordpress pagination in post
- Output wp_link_pages as raw url
- Paginate Links function: Page 1 doesn’t work
- Disable pagination on frontpage
- Paginating custom posts in categories yields a 404 error
- Paginating custom query on category template
- Pagination is not working on custom query inside a custom home page template
- WordPress Pagination Not Working After Transfer from Localhost
- Add Custom Pagination Permalink
- How can I get my pagination to recognize that it is on the first page?
- How to change page location in WordPress
- Custom pagination [duplicate]
- Paginate Links not working
- Why is my pagination showing up?
- WordPress Pagination with ajax – Dots
- Pagination not working for archive
- Pagination only working on index page not on a template page
- Link Back to Parent Category – Woocommerce
- Pagination Broken on Loop using ACF
- Custom template pagination
- Pagination links not working for custom taxonomy
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?