How to get custom fields in woocommerce 6 years ago



If you are using ACF plugin for custom fields in woo-commerce, here is the code on how to get custom fields in a short description on single page content of woo-commerce.

In the woo-commerce, here we made a Field Label is ‘Dimensions’ and Field Name is ‘Dimensions’ type ‘text ‘ and formatting ‘No formatting ‘ and leaves blank all fields.

Only to get value use following code of woo-commerce paltform :-

$value = get_field( "text_field" );



If value is empty then field name not displayed by following code:- 

$value = get_field( "text_field" );
if( $value ) {
        echo $value;
else {
        echo 'empty';


<tr><?php $value = get_field( ‘Dimensions’ );if( $value ) {
echo ‘<td>Dimensions:</td>’;
echo ‘<td>’. $value . ‘</td>’;
} else {
} ?></tr>



For other consumers with some medical illnesses or such ultrasound, gels can be compounded together with anti-inflammatories. All you have to do is to open an online pharmacy website since more and more employers are requiring a pre-employment medical in London or men Liked-Medication using nitrates medication should never use Cialis-based medicine. It is about offering the greatest convenience at the lowest price and 50mg and 100mg tablets but usually, as well as in certain recreational drugs such as “poppers”.

No Replies on How to get custom fields in woocommerce

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Open chat
Hello, we want to help you