Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wc php get acf fields product category

<?php 
$queried_object = get_queried_object(); 
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;  

the_field('youracffield', $taxonomy . '_' . $term_id);
	
?>
Source by support.advancedcustomfields.com #
 
PREVIOUS NEXT
Tagged: #wc #php #acf #fields #product #category
ADD COMMENT
Topic
Name
1+9 =