Hi,
Our course counting the the page all-courses is totally wrong.
https://prnt.sc/ncnleb
Could you check and fix asap please.
Tq
MkModerator
Well we are using
wp_count_posts
function which is wordpress core function to show the all courses count there .
I think the issue is with the wpml plugin which extensively modified the wordpress core function .Please try to contact the wpml plugin author or support for this .
This reply has been marked as private.
MkModerator
ok, let me know what ever you find. thanks.
There was no issue with WPML, they dont manipulate count any where.
I did debug with WPLMS, and found your hooks on bp_course_total_count.
You checked for WPML exist & then counting courses for particular language. But in case translation is disabled for course then your code fails to count & returns 0.
We have disabled translation for post_type course.
MkModerator
Ok, We are checking.
It never happened before. We need to check it.
MkModerator
I checked your issue. I installed wpml, used it after activation and deactivation but was unable to replicate your issue at my end.
If I am doing anything wrong, please reply.
refer :
https://screencast-o-matic.com/watch/cqf3hCZUgz
Dont deactivate WPML, Just Turn off translation for post type course from WPML. You replicate issue then
MkModerator
I Checked your issue.
You are right count is not working. I am sending this issue to our development team.
I am adding a trello card. You can check status from here:
https://trello.com/c/MoyyDiM6