Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Missing taxonomy terms
This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko 9 years ago.
- AuthorPosts
- April 8, 2015 at 10:31 pm #4459
Hello:
For the lists of available taxonomy terms, what would cause a term not to show in the list box? I have several posts assigned to these terms, but they won’t show in the list boxes. What can I check to see if there’s a disconnect? Thanks for any help you can give.
April 9, 2015 at 10:40 pm #4461OK, found the issue. In the ajax-search-pro/backend/settings/class/customtaxonomyterm.class.php script there’s this line:
$terms[$taxonomy] = array_slice($terms[$taxonomy], 0, 50, true);
When I changed the length parameter from 50 to 100, the missing terms showed up.
So here’s my question: is there a particular reason why this was limited to 50? Since this was a problem for us, is there any way for this to be addressed in a patch?
April 10, 2015 at 12:58 pm #4463Hi!
I’m glad you found it. There is a reason why that’s code there. Some customers had tousands of terms per taxonomy and the HTML output got so big, that their browser crashed on the back-end.
Best,
This most likely will be increased a bit, as 50 seems a bit low. Yet I have to set a limit to avoid browser crashes.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.