View Larger Image Add second description to category and shows up under products in WordPress Add the following snippet to the functions.php file – in the child Theme : Copy to ClipboardSyntax Highlighter/* Add second description to category and shows up under products */ /** * @snippet Add new textarea to Product Category Pages - WooCommerce * @compatible WooCommerce 5 */ // --------------- // 1. Display field on "Add new product category" admin page add_action( 'product_cat_add_form_fields', 'w3site_wp_editor_add', 10, 2 ); function w3site_wp_editor_add() { ?> 'seconddesc', 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '', ); wp_editor( '', 'seconddesc', $settings ); ?> term_id, 'seconddesc', true ) ); ?> 'seconddesc', 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '', ); wp_editor( $second_desc, 'seconddesc', $settings ); ?> term_id, 'seconddesc', true ) ) ) { echo '' . wc_format_content( htmlspecialchars_decode( get_term_meta( $term->term_id, 'seconddesc', true ) ) ) . ''; } } } /* End:Add second description to category and shows up under products */ By Mir Saeid|2023-01-24T11:17:59-05:00January 24th, 2023|Blog|0 Comments Share This Story, Choose Your Platform! Facebook About the Author: Mir Saeid Experienced computer engineer with post graduate diploma in e-Business, Web Developer and Programmer Related Posts Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins Gallery Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins ajax-loader.gif problem Gallery ajax-loader.gif problem How to capture client’s IP in PHP Gallery How to capture client’s IP in PHP How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress Gallery How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress How to Check Disk Space Usage on Google Cloud Gallery How to Check Disk Space Usage on Google Cloud