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);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.