term_id, 'cat_meta'); if(!empty($content[0]['cat_footer'])){ echo '
'; echo do_shortcode($content[0]['cat_footer']); } } } add_action('flatsome_products_after','flatsome_products_footer_content'); /* Add Custom Meta to Category */ if(is_admin()){ if(function_exists('get_term_meta')){ function top_text_taxonomy_edit_meta_field($term) { // put the term ID into a variable $t_id = $term->term_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_term_meta($t_id,'cat_meta'); if(!$term_meta){$term_meta = add_term_meta($t_id, 'cat_meta', '');} ?> '.$content.''; ?>

term_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_term_meta($t_id,'cat_meta'); if(!$term_meta){$term_meta = add_term_meta($t_id, 'cat_meta', '');} ?> '.$content.''; ?>

term_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_term_meta( $t_id, 'cat_meta' ); if ( ! $term_meta ) { $term_meta = add_term_meta( $t_id, 'cat_meta', '' ); } ?> 'term_meta[cat_product_block]', 'name' => 'term_meta[cat_product_block]', 'post_type' => 'blocks', 'show_option_none' => '-- None --', 'selected' => $selected, ) ); ?>