$per_page
is $number_of_performers
, which must be an incorrect value.
PS: Also you can reduce your $sort_array
defines with:
$sort_array = array();
$alphas = range('A', 'Z');
foreach ($alphas as $lttr)
$sort_array[$lttr] = __($lttr,'framework');
UPDATE
furthering @tom-j-nowell point of $total_terms
being the problem – your codes wp_count_terms()
‘s second argument is supposed to be an array or a string query, not an integer like $offset
is.
While troubleshooting, it may benefit to see the math and variable values so you can get a better idea what is the problem. Above your .paginator.lighter
echo, I’d add:
echo "<pre>
total_terms = {$total_terms}\n
per_page = {$per_page}\n
---
total = ".($total_terms/$per_page)."</pre>";
Related Posts:
- Changing pagination list class
- How to show a single post on the front page but have normal paging?
- Pagination resolving to first page only
- Pagination of RSS2 feed
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- How to ignore or disable nextpage tag?
- Category pagination shows same posts
- category/category_name pagination 404 error
- get_query_var(‘paged’) giving same result
- Show content only on front page?
- Getting 404 on taxonomy page
- Why am I getting a 404 on anything past page 1 of my query?
- Getting pagination for second loop to work on single.php
- 5 posts per page from single category, paginated
- WordPress custom URLs for pagination pages
- Home page not obeying post per page setting on the first page only
- How to add pagination to a single post
- WordPress rewrite rules for pagination on search page
- Styling the_posts_pagination With Font Awesome
- Pagination on 2nd loop
- How can I show a multipage post as a single, wrapped post?
- Why does pagination go to a blank page when navigating through home.php?
- Pagination with $_POST and $_SESSION
- wordpress is converting ?page=2 into /2
- Pass additional parameter in the URL
- Template hierarchy about pagination after front-page.php
- Why do next pages load the same content rather then older articles?
- Nested Pagination
- Add pagination to my custom loop [duplicate]
- Pagination stopped working after assigning custom page template to new page (different slug)
- Pagination with WordPress default gallery?
- Yoast’s rel=“next” & rel=“prev” tag don’t work on static homepage’s paginated pages
- How do i improve my custom pagination?
- Post Pagination Customization (wp_link_pages) Editing Navigation
- Default pagination is broken when use ‘static page’ as ‘front page’
- Using paginate_links() to generate “01, 02, 03, 04” paginations
- Paginate results from data fetched through array
- make a pagination that show posts by date
- Adding pagination on template page wordpress
- Pagination on custom post type not working if permalinks set to rewrite url
- Theme Option not Working Inside a Function
- Paginated Archives or Loop by Month
- search with pagination not working as expected
- Pagination Not Working on `WP_Query` Archive Page
- Cannot go back to the first paginated page using pagination links
- How do I make my pagination work?
- How to use custom previous/next link ?
- Remember form field values with page navigation
- How do you choose to display specific posts/pages by parent url
- Custom category.php paging shows the same posts
- Pagination Links showing incorrect previous page number
- How to limit page pagination… again
- How to remove /page/2/ from home page?
- wordpress custom search page pagination returns 404
- Conditional pagination li’s
- Paginate Links – Mid Size Less Than 2
- Problem when I try to insert pagination
- Different page template for paginated content?
- tax_query does not work with pagination with custom query (both wp_query and query_posts())
- Pagination on WP_User_Query not updating current page
- Pagination for multiple queries merging into one Loop
- paginate_comments_links() not working
- Adding paging to get_posts()
- Can I paginate this get_attachment query?
- How to Show Next-Previous Link Only
- WordPress static home page pagination not working
- How to create a WordPress gallery with pagination
- Broken pagination links on WP 4.9.10 blog pages
- Excluding posts without affecting the number of posts per page
- get_next_posts_page_link adds Inexistent directories
- How to add post page pagination to template part?
- why pagination not working in page template
- 404 page not found on pagination in home page while navigating to next page
- Linking images in WordPress Paginated Post
- Pagination in Archives
- Only show pagination when post count exceeds show post
- Pagination – linking back to base page – Page 1
- Custom Pagination shows same posts on each page
- Numbered pagination showing all numbers instead of paginated blocks
- Show next and previous page number
- Search pagination link redirecting to a link that doesn’t work with pagination
- Custom Query & Rewritten URL Pagination 404
- Search URL gives 404
- How to paginate query using get_categories()
- Adding pagination to query for custom page
- Main page paginate_links issue
- Custom pagination generates title 404
- WordPress creating 404s under blog tags
- Removing template part when not on homepage if / else
- Paginate template name
- WordPress pagination URL posts not load
- How to reduce the number of pages in pagination
- Use cookies in pagination
- foreach pagination
- Always show Next and Previous button in wp_link_pages ?
- paged query leads to 404? [duplicate]
- Pagination only working on index page not on a template page
- Separate page for pagination possible?
- Why does WordPress keep directing or forcing my pagination?