Title: Way to format count shortcode
Last modified: August 30, 2016

---

# Way to format count shortcode

 *  Resolved [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * (@harvoolio)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/)
 * Your plugin is excellent. I have some custom icons so I would love to show the
   count but in the decimal K format. So, the number comes across as 32825 but I
   would love to have it populate as 32.8K. That option is available in the widget,
   but I do not see it in the shortcode. Is there a way to do so? Thanks.
 * [https://wordpress.org/plugins/accesspress-social-counter/](https://wordpress.org/plugins/accesspress-social-counter/)

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

 *  Thread Starter [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * (@harvoolio)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372288)
 * Or another way to ask this, is even if there is not a custom option in the shortcode
   for formatting, is there a way to have my default settings in the admin screen
   apply to the shortcode?
 * Thanks.
 *  Plugin Author [Access Keys](https://wordpress.org/support/users/access-keys/)
 * (@access-keys)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372295)
 * Hello there,
 * Currently, you can print the number in the plain format i.e with count but without
   format.
 * We will release the update with the feature to format the count through the shortcode
   too today.Please stay tuned.
 * And if you liked our plugin then please let the world know about this with your
   positive rating in the wordress.org.
 * [https://wordpress.org/support/view/plugin-reviews/accesspress-social-counter](https://wordpress.org/support/view/plugin-reviews/accesspress-social-counter)
 * Thanks.
 *  Plugin Author [Access Keys](https://wordpress.org/support/users/access-keys/)
 * (@access-keys)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372324)
 * Hello there,
 * We have released an update adding this feature.Now you will have to add count_format
   paramter in the shortcode.
 * For example
    `[aps-get-count social_media="name of social media" count_format
   ="comma/short"]`
 * Thanks.
 *  Thread Starter [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * (@harvoolio)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372384)
 * Thanks. I updated the plugin and tried the shortcode, but I was unable to get
   it formatted. I used both the example here and with default.
 * [aps-get-count social_media=”twitter” count_format=”comma/short”]
    [aps-get-count
   social_media=”twitter” count_format=”default/comma/short”] [aps-get-count social_media
   =”googlePlus” count_format=”comma/short”]
 *  Thread Starter [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * (@harvoolio)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372385)
 * I also tried deleting the cache and resaving it.
 * Thanks again.
 *  Thread Starter [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * (@harvoolio)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372390)
 * As a follow-up the comma shortcode works so it might be a syntax issue.
 * This is working. [aps-get-count social_media=”twitter” count_format=”comma”]
 * Your plugin is excellent. I can actually see the precise load.
 * It runs 4 queries for a total of .0011 or .0012 seconds.
 * Plugin: accesspress-social-counter 4 0.0012
 * 37 SELECT option_value
    FROM 6mta7d_options WHERE option_name = ‘_transient_timeout_apsc_twitter’
   LIMIT 1 get_option()+ Plugin: accesspress-social-counter 1 0.0005 38 SELECT option_value
   FROM 6mta7d_options WHERE option_name = ‘_transient_apsc_twitter’ LIMIT 1 get_option()
   + Plugin: accesspress-social-counter 1 0.0002 39 SELECT option_value FROM 6mta7d_options
   WHERE option_name = ‘_transient_timeout_apsc_googlePlus’ LIMIT 1 get_option()
   + Plugin: accesspress-social-counter 1 0.0002 40 SELECT option_value FROM 6mta7d_options
   WHERE option_name = ‘_transient_apsc_googlePlus’ LIMIT 1 get_option()+ Plugin:
   accesspress-social-counter 1 0.0002 Queries in filter: 4 0.001
 *  Plugin Author [Access Keys](https://wordpress.org/support/users/access-keys/)
 * (@access-keys)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372421)
 * Hello there,
 * comma/short means you can pass either comma for comma separated numbers and short
   for abbreviated form i.e with 2k, 3.5m etc.
 * We are glad that its being useful for you and thank you for the rating.
 * And we also want to clarify that those queries will take very less time due to
   caching of count in database to prevent the frequent API calls and whenever the
   cache is expired, then it will call API again and then again store the counts
   in the database which will happen just one time whenever the cache is expired.
 * Thanks.
 *  Thread Starter [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * (@harvoolio)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372442)
 * I actually meant the queries were next to nothing and it is a good thing.
 * I also now understand you meant:
 * [aps-get-count social_media=”twitter” count_format=”default”]
    [aps-get-count
   social_media=”twitter” count_format=”comma”] [aps-get-count social_media=”twitter”
   count_format=”short”]
 * So thanks.
 * Minor fine-tuning but not too important. Each service has its own official way
   of rounding. So Twitter rounds one decimal over 18.7K whereas Google does not
   19K. Are you going to implement this option?
 * Thanks.

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

The topic ‘Way to format count shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accesspress-social-counter_c5dee5.
   svg)
 * [AccessPress Social Counter](https://wordpress.org/plugins/accesspress-social-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accesspress-social-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accesspress-social-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/accesspress-social-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accesspress-social-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accesspress-social-counter/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [harvoolio](https://wordpress.org/support/users/harvoolio/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/way-to-format-count-shortcode/#post-6372442)
 * Status: resolved