Home › Forums › ACF PRO › get value from taxonomy term › Reply To: get value from taxonomy term
this is my url for one product category page ../wp-admin/edit-tags.php?action=edit&taxonomy=product_cat&tag_ID=7&post_type=product
from there i take ID 7 and put there. so code will be like now <?php the_field('side_box_title', '7'); ?>
but nothing is come. remember this is woocommerce product category page
few code from that page
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
<h1 class="page-title"> <?php woocommerce_page_title(); ?></h1>
<?php endif; ?>
<?php
/**
* woocommerce_archive_description hook
*
* @hooked woocommerce_taxonomy_archive_description - 10
* @hooked woocommerce_product_archive_description - 10
*/
do_action( 'woocommerce_archive_description' );
?>
</div>
<div class="cat-left-pan">
<div class="cat-widget">
<?php the_field('side_box_title', '7'); ?>
</div>
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.