Courses Counting totally wrong

Home Forums Legacy Support Support queries Other issues Courses Counting totally wrong

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #204795
    Nabil G.
    Spectator
    Hi, Our course counting the the page all-courses is totally wrong. https://prnt.sc/ncnleb Could you check and fix asap please. Tq  
    #204820
    Mk
    Moderator
    Checking..
    #204825
    Mk
    Moderator
    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 .
    #204836
    Nabil G.
    Spectator
    This reply has been marked as private.
    #204845
    Mk
    Moderator
    ok, let me know what ever you find. thanks.
    #205377
    Nabil G.
    Spectator
    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.
    #205496
    Mk
    Moderator
    Ok, We are checking. It never happened before. We need to check it.
    #205631
    Mk
    Moderator
    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
    #206058
    Nabil G.
    Spectator
    Dont deactivate WPML, Just Turn off translation for post type course from WPML. You replicate issue then
    #206267
    Mk
    Moderator
    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
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Courses Counting totally wrong’ is closed to new replies.