You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dont know if that error is because i use WPML but $this->_get_order returned with duplicated IDs and Admin Ajax action "get_more_posts" was returning empty values so i fixed the function and works fine now.
thanks so much for the contribution, I will go through this and add it the next release. Next time, feel free to do a Pull Request so I can merge it more easily.
this is likely because WPML tags translation post IDs with the same taxonomy term ID that is being ranked, and hence the current function returns posts IDs of translated posts too.
the post query get_posts is likely being filtered by WPML for a given locale and therefore only the posts belonging to that translation. While the _get_order() uses SQL queries which do not get filtered by WPML and returns all the post IDs for that term.
instead of sorting out the results with ksort() I think it's more efficient to populate the results with only the posts found by the query get_posts().
v2.14.1 has this fix. Can you test it on your server and let me know if it solves your problem?
I dont know if that error is because i use WPML but $this->_get_order returned with duplicated IDs and Admin Ajax action "get_more_posts" was returning empty values so i fixed the function and works fine now.
https://github.com/aurovrata/ReOrder-posts-within-categories/blob/master/admin/class-reorder-post-within-categories-admin.php
The text was updated successfully, but these errors were encountered: