wp_list_categories – Limit on number of categories ?
-
Having setup our site approximately 6 months ago we started adding content and everything has worked perfectly until now – we utilise Exec-PHP to execute a very small amount of PHP code on a couple of pages but this does not appear to be the issue, as the same code still works on the other pages, jut not on this single page.
Currently we have over 1000 categories and this will continue to grow until we have approximately 4500 categories due to the nature of the content we are indexing.
The reason i am giving this information is i believe the issue might be linked to the number of categories we are trying to list – but whether it is an issue with Exec-PHP or an issue with WordPress is still to be determined?
Currently we use this code to list the categories in a PAGE using the aforementioned plugin:
<?php wp_list_categories('orderby=name&show_count=1&use_desc_for_title=0&title_li=&exclude=30,650,718,1157'); ?>
We use the exact same code on multiple pages just the include/exclude integers are different so the code itself is not the issue as it still works on the other pages.
Also, having done extensive testing on this code we have found that once we are trying to list ‘too many’ categories it just stops listing ANY categories. For example:
1. Exclude our largest category and the code works.
2. Stop excluding that category and it stops working again
3. Start excluding the smallest categories working our way up and after 4 or 5 categories the code starts working again, displaying every category that is not excluded (even the originally excluded large category)
* Rules out the issue of a corrupt database or section of the database i believe?So does anybody have any idea if the wp_list_categories function has a limit on the number of categories it can process/deal with? And if so where is this function found and how can we change it? I’ve read on other forum topics and Google searches of LIMIT’s to do with categories but that was related to the admin WRITE panel etc. rather than on the actual site.
Or could it be an issue with the Exec-PHP plugin not processing information correctly or having its own internal limits on the number of categories it is able to process?
If the latter, does anybody know of another PHP execution plugin that works with current version of WordPress?
I am by no means a PHP expert although i do a lot of HTML/CSS programming so would gladly welcome your thoughts and suggestions on the issue.
Warm Regards,
Ewan
- The topic ‘wp_list_categories – Limit on number of categories ?’ is closed to new replies.