Show Product Category Description inside Accordion on WooFood

Following If you want to show the product description of the category you have added inside description under Products > Categories on WooCommerce inside the accordion of WooFood before products you can use the following snippet on your functions.php inside your child theme add_action('woofood_after_products_wrapper_open', 'wpslash_show_category_description', 10, 2); function wpslash_show_category_description($cat, $ids) { $term_object = get_term_by( 'slug',...

September 14, 2020 WPSlash

Following

If you want to show the product description of the category you have added inside description under Products > Categories on WooCommerce inside the accordion of WooFood before products you can use the following snippet on your functions.php inside your child theme

add_action('woofood_after_products_wrapper_open', 'wpslash_show_category_description', 10, 2);

function  wpslash_show_category_description($cat, $ids)
{
    $term_object = get_term_by( 'slug', $cat, 'product_cat' );
    echo $term_object->description;

}

Commission-free ordering

Run restaurant orders on your own WordPress site

FoodMaster adds delivery, pickup, dine-in, POS, and kitchen tools — with zero per-order fees.

Get FoodMaster

Leave a Comment

Your email address will not be published. Required fields are marked *

×

🔥 ONE DAY ONLY OFFER 🔥

Upgrade FoodMaster Today

Normally your license is limited to 1 Website.

Today only, get a LIFETIME Unlimited Websites License for just:
$499

✔ Unlimited Client Websites
✔ Unlimited Personal Projects
✔ Future Updates Included
✔ Save Hundreds on Additional Licenses

Offer Ends In: