How to disable pagination in only one category with plugin API?

Posted in: Newspaper
Post count: 6

Hi,
I use the pratical example in order to use a plugin and use API to make new category template (for only one category).
It works, but I would like if it’s possible to disable pagination in the category which use the category template with the plugin?
As I see on the forum, certainly we could make a modification of category.php with a IF (and the good ID category)… but before I prefer to know if it’s possible to use a code… because if one day I will update the theme with the category.php, so I don’t lose this function.
Thank you in advance for your help!
Regards

Post count: 6

I reply to myself, so don’t need to give me answer. Maybe one day it could help someone.

An easy solution was to add a code in functions.php, in order to change the number of posts for only this category (it’s easy to find this code on internet). So I just add a large number and the pagination disappears!

The best for you 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.