ACF: replace comma with another sign [closed]

Modify the following line in your function: $value = number_format(floatval($value), 2); To include another two arguments from the number_format() function – namely the decimal separator (set to a dot) and the thousands separator (set to an apostrophe) $value = number_format(floatval($value), 2, “.”, “‘”); So in total this line says: format the number (after floating it … Read more

Pull out Advanced Custom Fields in Related post plugin

According to advenced custom fields you get the value with get_field http://www.advancedcustomfields.com/docs/functions/get_field/ Just change “text_field” to your field-key. <?php $related = MRP_get_related_posts( $post->ID, true, false, ‘quote_list’ ); if( !empty( $related ) ) { foreach( $related as $key => $value ) { // Get post $related = get_post( $value ); // Get the field “text_field” on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)