Title: Using paginate_links() function
Last modified: March 12, 2023

---

# Using paginate_links() function

 *  Resolved [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/using-paginate_links-function/)
 * Hi,
 * I’m using the `paginate_links()` function ([source](https://developer.wordpress.org/reference/functions/paginate_links/))
   and have a question about the args.
 * I have only added the `total` arg and it seems to work fine with different permalink
   settings. Does this mean I can omit the `base` and `format` arg, so use the default
   settings instead? Because both are added in most examples I find online, so I
   have doubt about this.
 * Guido

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [karolinapan](https://wordpress.org/support/users/karolinapan/)
 * (@karolinapan)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/using-paginate_links-function/#post-16551817)
 * Hi,
 * I would say that you can omit the `base` and `format` arguments and use the default
   settings instead provided that they suit your requirements.
 * Safe to say that the default settings may not work in all cases, such as when
   you have a custom permalink structure set up in WordPress and it seems to be 
   generally a good practice to have those arguments defined.
 * Ultimately, it’s always a good idea to test your pagination links thoroughly 
   to ensure they’re working as expected.
 *  Thread Starter [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/using-paginate_links-function/#post-16551828)
 * Hi Karolina,
 * Good point: custom permalink structure. I will do some extra testing.
 * Guido

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using paginate_links() function’ is closed to new replies.

## Tags

 * [paginate_links](https://wordpress.org/support/topic-tag/paginate_links/)
 * [pagination](https://wordpress.org/support/topic-tag/pagination/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/using-paginate_links-function/#post-16551828)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
