M
M
meekoka2017-09-05 23:35:47
WordPress
meekoka, 2017-09-05 23:35:47

How to display custom field in Woocommerce product card?

Hello!
Please help with the output of an arbitrary field in the WC product card. With the output in wordpress, there are no difficulties, unlike WC. I plan to display it in the single-product > tabs > tabs.php file template, which I previously threw into my theme. Custom field created, called "a_extra_product_info". I would like to be able to insert php code in the right place to display the field.
I would be grateful for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stargot, 2017-09-10
@Stargot

get_post_meta( get_the_ID(), 'a_extra_product_info', true );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question