bottom description
-
functions.php
function test123() { $term_id = get_queried_object()->term_id; $test123 = term_description($term_id, 'product_brand'); if ( !empty($test123) ) { echo '<div class="test123">' . $test123 . '</div>'; } } add_action( 'woocommerce_after_main_content', 'test123', 20 );It works on all pages. It shows as a description twice on the category page. How can I fix this? How can I just get the brand description down on the brand page?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘bottom description’ is closed to new replies.