Home › Forums › Front-end Issues › Show 'prepend' text from number field › Reply To: Show 'prepend' text from number field
do you mean the below code. There was an error that was explained by the following comment and it corrected here.
$field_name = "job_field_area";
$field = get_field_object($field_name);
if ($field) {
?>
<li class="list-item">
<div lass="list-content">
<h3><?php echo $field['label']; ?></h3>
<?php echo implode(', ', wp_list_pluck($field['value'], 'name')); ?>
</div>
</li>
<?php
}
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.