Home › Forums › Front-end Issues › Add category description with Advanced Custom Field › Reply To: Add category description with Advanced Custom Field
I have copied content-product_cat.php to my theme Woocommerce folder and tried this answer
/**
* woocommerce_after_subcategory hook.
*
* @hooked woocommerce_template_loop_category_link_close - 10
*/
do_action( 'woocommerce_after_subcategory', $category ); ?>
<?php
$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
$thumbnail = get_field('productdesc', $queried_object);
$thumbnail = get_field('productdesc', $taxonomy . '_' . $term_id);
?>
<?php the_field( 'productdesc', $queried_object ); ?>
But it doesnt help. Any help please!
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.