Title: Problem while using the short-codes
Last modified: August 22, 2016

---

# Problem while using the short-codes

 *  Resolved [davidgraham100](https://wordpress.org/support/users/davidgraham100/)
 * (@davidgraham100)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/)
 * Hi. I had perfect success with the widget but when I do the same config for the
   short-codes it ran very slow.
 * Here is my code
 * [jellyfish_counter start=400124910 end=999999999 speed=50 interval=1 digits=9
   direction=”up” flat=”true” format=”000,000,000″ digit_style=”background: transparent;
   color: red;” tenths=”false”]
 * and here is the page.
 * [http://instinctandbeyond.info/beatspyu1/?qantummodule=current-data-point-statistics](http://instinctandbeyond.info/beatspyu1/?qantummodule=current-data-point-statistics)
 * The bottom line, first counter is the correct speed. (widget)
 * The top line is the same as the left counter but is going very slowly. (Short
   Code)
 * [https://wordpress.org/plugins/jellyfish-counter-widget/](https://wordpress.org/plugins/jellyfish-counter-widget/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Strawberry Jellyfish](https://wordpress.org/support/users/toxictoad/)
 * (@toxictoad)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/#post-5877267)
 * Hmmmm, shortcode isn’t quite right.
 * The first widget counter on your page is a continuous counter with an interval
   of 0.05
 * The one you’ve made as a shortcode isn’t running in continuous mode which is 
   also why it goes back to the start value on page reload (it’s missing the timestamp)
   and has an interval of 1, also speed has no effect on continuous counters so 
   ignore that option.
 * Try something like this:
 * `[jellyfish_counter start=400124910 end=999999999 interval=0.05 timestamp="2015-
   03-09 18:00:00" digits=9 direction="up" flat="true" format="000,000,000" digit_style
   ="background: transparent; color: red;" tenths="false"]`
 * **timestamp** is just a date time string reference point so the counter knows
   when it should have started counting from. A widget creates it’s own internal
   timestamp when it is created but as a shortcode has no notion of when it was 
   created you need to specify one manually. Anyway, the timestamp just represents
   when the counter was 0 (or the starting value, 400124910 in your case) so you
   may want to adjust my example to tweak your desired values… If you wanted to 
   you can make the start value 0 and the timestamp (400124910 * 0.05) seconds in
   the past and you’d get the same result.
 * Well that’s probably more info than you needed, play with the example I gave 
   above and tweak your timestamp or start value as desired that should do the trick.
 *  Plugin Author [Strawberry Jellyfish](https://wordpress.org/support/users/toxictoad/)
 * (@toxictoad)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/#post-5877269)
 * I should probably add that the timestamp is in localtime and the one in the example
   was just the date / time I wrote the post, so substitute with your own.
 *  Thread Starter [davidgraham100](https://wordpress.org/support/users/davidgraham100/)
 * (@davidgraham100)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/#post-5877276)
 * Thanks so much, that fixed it immediately. I have four counters, three are in
   continuous but one starting again each time I refresh the page. sorry to ask 
   again. Any idea what would be causing this to happen.
 * [jellyfish_counter start=11111 end=99999 speed=50 interval=2 timestamp=”2015-
   03-09 18:00:00″ digits=5 direction=”up” flat=”true” format=”00,000″ digit_style
   =”background: transparent; color: red;” tenths=”false” digit_height=30 digit_width
   =20]
 * Dave
 *  Plugin Author [Strawberry Jellyfish](https://wordpress.org/support/users/toxictoad/)
 * (@toxictoad)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/#post-5877283)
 * That looks OK, like I said you can omit the speed param in a continuous counter
   as it doesn’t do anything, but I doubt that’s what is causing the problem.
 * No idea I’m afraid, I’ll have to test it out when I get a moment and let you 
   know if I find anything.
 *  Thread Starter [davidgraham100](https://wordpress.org/support/users/davidgraham100/)
 * (@davidgraham100)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/#post-5877288)
 * Thanks appreciate your help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem while using the short-codes’ is closed to new replies.

 * ![](https://ps.w.org/jellyfish-counter-widget/assets/icon-256x256.jpg?rev=1009888)
 * [Jellyfish Counter Widget](https://wordpress.org/plugins/jellyfish-counter-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jellyfish-counter-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jellyfish-counter-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/jellyfish-counter-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jellyfish-counter-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jellyfish-counter-widget/reviews/)

## Tags

 * [Short Code](https://wordpress.org/support/topic-tag/short-code/)

 * 5 replies
 * 2 participants
 * Last reply from: [davidgraham100](https://wordpress.org/support/users/davidgraham100/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/problem-while-using-the-short-codes/#post-5877288)
 * Status: resolved