Home › Forums › Front-end Issues › Displaying all fields in a group › Reply To: Displaying all fields in a group
No that didn’t work either. I’ll just use the CSS option for now. Like I said, PHP is new to me so it could be that I have implemented the code wrong. My entire code is:
// ACF SPECIFICATION FIELDS
add_action('woocommerce_short_description', 'speaker_specification_fields', 4 );
function speaker_specification_fields() { ?>
<ul>
<li><?php
$field = get_field_object('field_6155c03d20d5c');
?>
<?php echo $field['label']; ?>: <?php echo $field['value']; ?></li>
<li><?php
$field = get_field_object('field_61715110d855c');
?>
<?php echo $field['label']; ?>: <?php echo $field['value']; ?></li>
<li><?php
$field = get_field_object('field_6155bf1660b3c');
?>
<?php echo $field['label']; ?>: <?php echo $field['value']; ?></li>
<li><?php
$field = get_field_object('field_60d47fd0711ca');
?>
<?php echo $field['label']; ?>: <?php echo $field['value']; ?></li>
<li><?php
$field = get_field_object('field_60d47ffb711cb');
?>
<?php echo $field['label']; ?>: <?php echo $field['value']; ?></li>
<li><?php
$field = get_field_object('field_6155bed832b78');
?>
<?php echo $field['label']; ?>: <?php echo $field['value']; ?></li>
</ul>
<?php
if( is_product_category() ):
return $description;
else:
return $description.$text;
endif; ?>
<?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.