Support

Account

Home Forums General Issues Custom WYSIWYG Field in WooCommerce Product Category Reply To: Custom WYSIWYG Field in WooCommerce Product Category

  • $queried_object = get_queried_object(); 
    $taxonomy = $queried_object->taxonomy;
    $term_id = $queried_object->term_id;  
     
    // load desc for this taxonomy term (term object)
    $thumbnail = get_field('category_description', $queried_object);
     
    // load desc for this taxonomy term (term string)
    $thumbnail = get_field('category_description', $taxonomy . '_' . $term_id);
    
    echo '<p class="dop_widget_p">' . get_field( 'category_description', $queried_object ) . '</p>';

    Wrap the text in a tag and add style