• Resolved Guido

    (@guido07111975)


    Hi,

    I’m using the paginate_links() function (source) 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)
  • 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

    (@guido07111975)

    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.