Hello.
That you for pointing us to this issue. We will try to improve this as soon as possible.
Regards.
The problem is that my client’s website currently looks terrible because there are commas in the years. Could you please talk to your developers and supply a solution ASAP? Previous programmers have customized your plugin and I can’t do updates because it destroys everything that has been done. I just need the ability to remove the comma from the years.
There should be a way to have it strip the comma from the code in the files that you have in the software I just need to know how and where.
Something like this: number_format($year, 0, ‘.’, ”);
I just need to know how to change the php code for the year variable with this.
Hello,
you could add the following code to your functions.php in theme’s root directory:
function ignore_format_of_year_built() {
if( has_action( 'wpp_stat_filter_year_built', array( 'WPP_F', 'format_numeric' ) ) ) {
remove_action( 'wpp_stat_filter_year_built', array( 'WPP_F', 'format_numeric' ) );
}
}
add_action( 'template_redirect', 'ignore_format_of_year_built' );
Just replace filter wpp_stat_filter_year_built above if needed. year_built is slug of your year attribute. So, e.g., if slug is year, filter should be called wpp_stat_filter_year.
Regards.
Looks like that worked, thanks!
Please, mark the ticket as resolved.
Thank you.