Support

Account

Home Forums General Issues using ACF without access to custom-post.php Reply To: using ACF without access to custom-post.php

  • Hi John,

    I have added this to the functions.php. As you can tell I am a beginner with this…

    //Advanced Custom Fields custom functions for displaying arrays.

    function my_acf_format_value( $value, $post_id, $field ) {

    // Render shortcodes in all textarea values.
    return do_shortcode( $value );
    }

    add_filter(‘acf/format_value’, ‘my_acf_format_value’, 21, 3);

    implode(‘, ‘, $array);

    $value = implode(‘<hr>’, $value);

    // Apply to select fields.
    add_filter(‘acf/format_value/type=select’, ‘my_acf_format_value’, 22, 3);