You should use the pre_get_posts
action to get the correct number of category pages and links.
The complete solution is explained here.
You should use the pre_get_posts
action to get the correct number of category pages and links.
The complete solution is explained here.