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!
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future.— Advanced Custom Fields (@wp_acf) January 6, 2023
© 2023 Advanced Custom Fields.