Try switching the pagination type to array. That way you can use each link in a loop and add what you need to them:
Using the example from the codex:
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'type' => array
) );
foreach ( $paginate_links as $link ) {
echo sprintf("%02s", $link);
}
The php sprintf function will add a leading zero.
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?
- Why do you need an unlikely integer in paginating?
- How to get the number of Pages in a single Post Pagination?
- Paginate links with “ugly” and “pretty” permalinks?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- Combining WordPress pagination functions for archives and search results
- Passing custom args in paginate_links
- Paginate a list of users?
- Allow Users to Choose Pagination or Next/Previous (Combine)
- Pagination that includes “view all on one page”
- Custom page-links for paginated posts | wp_link_pages quicktag
- Custom paging function
- Broken pagination, need help figuring out why!
- How to grab a specific page of content from paginated post?
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Pagination with get_posts seems to work but links not showing
- paginate_links WP function
- How to let crawlers search paginated comments?
- In pagination, change link for page 1 to homepage
- Pagination gives 404 in template
- Skip first post on Category Archive
- wordpress pagination, links appear but go nowhere when clicked
- How do I insert CSS into a function?
- How to make multiple page out of one post
- wp_list_categories pagination
- Insert pagination links – wp_link_pages() – before filters on posts
- 404 not found error on pagination
- Pagination for multiple queries for different authors on author.php
- WordPress 5.5 breaks pagination in an older plugin
- Page not found when clicking on pagination tab
- How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?
- Paginate Pages by only showing 3 pages at most
- Using Pagination with Timber Routes
- How to create Alphabetic pagination with range?
- Is it possible to have pagination with an offset loop?
- Authors list Pagination?
- Exclude certain post formats from pagination
- How to use pagination on costum post type
- How to make WP Query Pagination work
- WordPress Gallery shortcode with pagination
- Archive pagination not working
- Pagination in pages (not posts) with the twentythirteen theme?
- Wp pagination for custom database table
- How to customize wp_link_pages()?
- How to implement a slideshow on WP similar to these examples?
- Post Pagination Showing Same Posts Every Page at wordpress blog
- Check if “Break comments into pages” is selected
- Custom posts not paginating on archive page and returning 404
- Page with Multiple Loops Breaking Pagination
- Can posts_nav_link show post titles?
- The paging is very slow under a large number of articles
- Custom admin page pagination permissions error
- Customizing Latest Post Pagination
- Pagination – not progressing
- Error 404 on pagination on homepage
- Pagination Adding Numbers in Strange Fashion
- How to add pagination to category templates
- Make posts_per_page value the same on all pages
- Search URL redirect problem
- Adding pagination to a custom template that uses custom post types?
- How do I hide a Gutenberg block when paginating
- Add pagination to WP_Query
- WordPress blog pagination not working
- Show number of pagination pages even when total under two
- how can I do numeric pagination?
- Pagination 301 redirecting page 1
- change pagination url
- empty pages on pagination with meta query
- I would like to fix a problem with post pagination: i can only see the url title (prev – next) but title is truncated
- The pagination is working on Local, not on LIVE. why?
- Creating multilingual glossary for WP
- How To Get ‘Custom SEO Titles’ For Each Paginated WordPress Page?
- get_posts custom paging
- Paginate Links in Wp Query Shortcode
- $paged always 0
- Extra pagination pages being wrongly generated
- Pagination not working on blog grid
- Pagination not working it makes no sense
- Pagination reloads first page but has proper url
- Pagination doesn’t work on static front page
- Changing post per page causing 404 for pagination. Need a redirect htaccess rule
- Pagination re-direct to main page [duplicate]
- Split a long form into multiple pages
- Pagination and Custom Search page
- Pagination options using xml data instead of database?
- wordpress pagination problem with page templates
- Pagination for custom post type not working [duplicate]
- wordpress pagination fix after the_posts
- WordPress pagination with Bootstrap 4 and Grid content Display
- Pagination with wp_pagenavi not working on custom page
- how to apply Pagination on post
- Add Pagination in custom loop
- Custom Post Type Pagination For Genesis Child Theme [closed]
- Modifying previous_posts link to use AJAX
- paginate_links with select option
- Stop pagination when static homepage is set
- Is ‘pm’ used by core?