WP_User_Query displays only half Users in pagination
-
I have made a custom User taxonomy and I’m able to display users based on that taxonomy with author.php (single user) and with taxonomy-customtax.php (user archive).
Now the problem comes with the pagination in the archive page.
I’m using the WP_User_Query to display Users and everything works ok as long as I set the ‘pre_get_posts’ to half less than the ‘number’ of Users per page.If I set the same number (1) and there are 7 Users to display, I get 7 pages with 1 user on each, but the fifth (and sixth and seventh) page returns a 404.
Anyone knows what could be the issue?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WP_User_Query displays only half Users in pagination’ is closed to new replies.