• Resolved m4c

    (@marcinszewczyk)


    First of all I would like to thank you very much for the plugin!
    I have a question, how to remove the comma separating the thousands in the number of images [sbs-count-media]?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Jeff Starr

    (@specialk)

    It’s not a current feature, but I will try to add in a future update of the plugin. Also btw, the correct shortcode name is [sbs_media_count] as documented on the plugin’s Installation page. Let me know if I can provide any further infos, glad to help anytime.

    Thread Starter m4c

    (@marcinszewczyk)

    Shure, [sbs_media_count] – typo, my mistake. Thanks for your reply and update announcement!

    Plugin Author Jeff Starr

    (@specialk)

    Yesh, gotta point out any obvious errors for the sake of any others who may stumble upon this thread looking for infos. Otherwise the incorrect [sbs-count-media] will confuse people. Cheers!

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this. The next version of SBS includes a filter hook to disable the commas for the [sbs_media_count] shortcode. To do it, add the following snippet to your theme (or child theme), or add via simple custom plugin:

    function sbs_include_commas($enable) { return false; }
    add_filter('sbs_include_commas', 'sbs_include_commas');

    This currently works only for the [sbs_media_count] shortcode. As time allows, the filter will be added to other shortcodes.

    I hope this helps, thank you for the feedback @marcinszewczyk.

    Thread Starter m4c

    (@marcinszewczyk)

    It works! Thanks for your work and time!

    Plugin Author Jeff Starr

    (@specialk)

    You are welcome, @marcinszewczyk!

    Please rate the plugin if you have not already done so — it really helps and is super appreciated.

    Thread Starter m4c

    (@marcinszewczyk)

    Done! Thx

    Plugin Author Jeff Starr

    (@specialk)

    Thank you @marcinszewczyk! ??

    Bertrand

    (@fontaineber)

    Hi,
    Many thanks for this filter hook, it works fine !

    Is it a way, instead removing the comma, replacing it with the upper thousand separator (‘) ?

    Regards,
    Bertrand

    Plugin Author Jeff Starr

    (@specialk)

    Hi Bertrand, it’s not a current feature but I’ve added to the list for possible inclusion in a future update.

    Bertrand

    (@fontaineber)

    Hi,
    Many thanks !

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Removing comma in in the number of images [sbs-count-media]’ is closed to new replies.