ACF custom block get_field() shows null on front-end? [closed]
ACF custom block get_field() shows null on front-end? [closed]
ACF custom block get_field() shows null on front-end? [closed]
How can I display a custom field from all posts and order them individually from their parent post
How to add a post slug to a url?
ACF: how do I get the fields and its values of a specific group?
Order posts by custom field DATE value
Print custom field in Query Loop block
Calling the “wp-link-wrap” pop-up modal
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
Replace the_field with get_field. The former echoes data without the need to explicitly call echo on the function name, the latter returns data, which is what you need when storing data against a variable for later use in your function. In your case, concatenating the first/last name prior to its output. That should fix your … Read more
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