Timeline for WooCommerce Custom Pagination
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 22, 2021 at 18:37 | history | edited | Baikare Sandeep | CC BY-SA 4.0 |
Updated Gist link to custom code added here.
|
Sep 22, 2021 at 17:47 | comment | added | Baikare Sandeep | I have updated the gist link to this answer @TomJNowell | |
Sep 22, 2021 at 17:46 | history | edited | Baikare Sandeep | CC BY-SA 4.0 |
Updated gist link
|
Jul 24, 2021 at 0:34 | comment | added | Tom J Nowell♦ | This answer is useless without the gist, and the gist link no longer works. Answers must be self contained. | |
Nov 15, 2018 at 15:42 | comment | added | Baikare Sandeep |
You can use the more parameters in that function for before_page_number and after_page_number . Reference: codex.wordpress.org/Function_Reference/paginate_links
|
|
Nov 15, 2018 at 13:21 | comment | added | JoeCold | Thank you thats working but the pagination is <?php endwhile; $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $the_query->max_num_pages ) ); wp_reset_postdata(); } else { echo __( 'No products found' ); } ?> how do you style that ? | |
Nov 15, 2018 at 12:48 | comment | added | Baikare Sandeep | I have updated my code in gist, please check that one. Hope it'll work. | |
Nov 15, 2018 at 12:48 | history | edited | Baikare Sandeep | CC BY-SA 4.0 |
deleted 657 characters in body
|
Nov 15, 2018 at 12:34 | history | edited | Baikare Sandeep | CC BY-SA 4.0 |
deleted 7 characters in body
|
Nov 15, 2018 at 12:18 | comment | added | JoeCold | I have updated my code for you | |
Nov 15, 2018 at 11:58 | comment | added | JoeCold | when adding <?php have_posts()) : $the_query -> the_post(); ?> it comes up with this error: Parse error: syntax error, unexpected ') | |
Nov 15, 2018 at 11:52 | history | answered | Baikare Sandeep | CC BY-SA 4.0 |