Remove the following line from your $args
array:
'post_type'=> 'post',
Or change it to:
'post_type'=> 'any',
This is only running the query on posts and will not work on pages.
The following explains this in more detail: https://wordpress.org/support/article/post-types/
Related Posts:
- Is it possible to paginate posts correctly that are random ordered?
- How to determine if I’m on the first page of pagination?
- How to determine if theres a next page
- Paginate links with “ugly” and “pretty” permalinks?
- Pagination of RSS2 feed
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- Custom paging function
- Broken pagination, need help figuring out why!
- How to grab a specific page of content from paginated post?
- paginate_links WP function
- Using pre_get_posts to filter out posts, pagination problem
- Why am I getting a 404 on anything past page 1 of my query?
- Getting pagination for second loop to work on single.php
- Pagination gives 404 in template
- Frontpage pagination issue with paginate_links() function
- pagination with sticky posts
- Skip first post on Category Archive
- WordPress custom URLs for pagination pages
- Home page not obeying post per page setting on the first page only
- wordpress pagination, links appear but go nowhere when clicked
- How to make multiple page out of one post
- Pagination not applied on posts
- Remove h2 Tag in screen_reader_text
- 404 not found error on pagination
- Page not found when clicking on pagination tab
- next_post_link for CPT only working for a few posts? weird!
- Pagination with $_POST and $_SESSION
- wordpress is converting ?page=2 into /2
- How to create Alphabetic pagination with range?
- Add pagination to my custom loop [duplicate]
- Pagination with WordPress default gallery?
- Site pagination issue
- Archive page pagination links redirecting to home page instead of going next page
- WordPress Gallery shortcode with pagination
- Paginate results from data fetched through array
- How to paginate with letters instead of numbers?
- Pagination in pages (not posts) with the twentythirteen theme?
- make a pagination that show posts by date
- Adding pagination on template page wordpress
- Pagination on custom post type not working if permalinks set to rewrite url
- Theme Option not Working Inside a Function
- search with pagination not working as expected
- Pagination Not Working on `WP_Query` Archive Page
- Cannot go back to the first paginated page using pagination links
- How do I make my pagination work?
- How to use custom previous/next link ?
- Remember form field values with page navigation
- How to use pagination?
- How do you choose to display specific posts/pages by parent url
- Custom category.php paging shows the same posts
- Pagination Links showing incorrect previous page number
- How to limit page pagination… again
- Conditional pagination li’s
- Automatically adding a link to the next page link before ” tag in posts?
- Hide content after going to page 2 of archive, show content when back at first page
- Adding paging to get_posts()
- Add pagination to this following template
- split wordpress loop into columns of categories and associated posts
- How to Show Next-Previous Link Only
- How Change URL in Pagination pagebreak no plugins wordpress?
- How is the Page Splitting implemented in the theme?
- Why the page number does not appear in splitting post?
- Use of rewind_posts() cause pagination to break
- Pagination not working in custom post type but perfectly in posts
- Paginate Images To Similate Map Drill-Down
- Custom pagination with URL parameters
- how to add pagination to a popular post custom page?
- Add pagination – syntax error when copy/pasting
- Remove “Page” from Category archive
- Broken pagination links on WP 4.9.10 blog pages
- Problem with Paging 404
- Pagination not working past page 3 on archive page of category
- Using the_posts_pagination with offset adds extra empty page
- get_next_posts_page_link adds Inexistent directories
- Search, pagination, the last pages leads to 404 page
- Pagination is not working in custom page template
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Pagination – linking back to base page – Page 1
- 404 Pagination issue for only one category
- Search pagination link redirecting to a link that doesn’t work with pagination
- Adding pagination to query for custom page
- Plugin to show pagemap beneath certain page and next/previous page beneath certain page?
- Using WP_List_Table and search_box(): How to Paginate the Found Search Results When Sending by Method «Post»?
- URL rewrite function and pagination with year in the url
- How do I make pagination_links show as 01 02 03, instead of 1 2 3?
- wordpress pagination problem with page templates
- Fix Pagination Directory on a page set as Front Page/Main Page [duplicate]
- pagination custom post type on CP page
- Paginate template name
- foreach pagination
- wordpress pagination fix after the_posts
- WordPress pagination with Bootstrap 4 and Grid content Display
- Pagination only working on index page not on a template page
- Loading post like facebook on scrool to bottom [duplicate]
- How to remove post duplicate when using query_posts(‘offset=1’)
- How to change `page` slug in pagination? on a specific pagination result (not globally)
- Two pagination in one page without being synchronous
- How to build custom pagination with center pages
- Change “/” (slash) before page number in pagination path to “-” (hyphen)