Support » Plugin: WP CountUP JS » Doesn’t work when I try to use do_shortcode

  • Resolved stmalk


    Hi, I’m trying to make your plugin work with a value I get from Advanced Custom Field and implement it all in a template. But the plugin just refuses to work, rendering ‘–‘ instead. Here is my code. What do you think I should do?
    Thank you

    $myvalue =  get_field( "number_1" ); 
    $countstart = 0;
    $countduration = 3;
    echo do_shortcode('[countup start='.$countstart.' duration='.$countduration.']' .$myvalue. '[/countup]');
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Roel Magdaleno


    Hey! Sorry for the late response, I wasn’t here!

    You’re using this: [countup start='.$countstart.' duration='.$countduration.']' .$myvalue. '[/countup]

    Did you enable Use the end number inside the shortcode? option in settings page? If not, you should use the shortcode in this way:

    [countup start='.$countstart.' end='.$myvalue.' duration='.$countduration.']

    Test it and let me know what happened. Thanks!

    Plugin Author Roel Magdaleno


    Due to no response, I’m gonna mark this thread as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn’t work when I try to use do_shortcode’ is closed to new replies.