• Resolved christophemalo

    (@christophemalo)


    Hi ??

    I try to use the [sbs_posts] short code in the end number in Elementor counter.
    But I have an NAN error.

    I use the short code widget, I have the results 21.

    Some one have an idea with this problem?
    Knowing bug with the counter?
    Or may be something wrong I did?

    Thanks in advance for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter christophemalo

    (@christophemalo)

    I had this simply code in the functions.php file in hello Elementor template:

    function wpb_total_posts() { 
    $total = wp_count_posts()->publish;
    return $total; 
    } 
    add_shortcode('total_posts','wpb_total_posts');

    and use the short code [total_posts] in the same place.
    This way work correctly but not fine when update the template.

    Plugin Author Jeff Starr

    (@specialk)

    Thanks for reporting.

    I am not seeing any NAN error or other issue on default WordPress. If you can let me know the steps to reproduce the error on default WP, I will be glad to investigate and try resolve any issue.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @christophemalo, just wanted to follow up with this. It’s been awhile with no reply, so I hope the issue is resolved? Or if there is anything I can do to help, please let me know. Thank you.

    Plugin Author Jeff Starr

    (@specialk)

    Hey @christophemalo, I hope you got this sorted. It’s been awhile with no reply so gonna go ahead and mark this thread as resolved to help keep the forum organized. Feel free to post again with any further questions or feedback, Thank you.

    I’m trying to do the same thing but with users, still can’t fix this issue.

    in text widgets the plugin works correcly, but with the counter i can’t make it work

    here are some printscreens: https://pixeldrain.com/l/xGFQ593U

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NAN error with Elementor counter’ is closed to new replies.