WPSlash

Show Product Category Description inside Accordion on WooFood

Monday September 14, 2020

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;

}

Leave a Comment

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

Related Articles

Tutorials

How to Set Up Google Analytics for Your WooCommerce Restaurant Website and Track Order Data (2025)

Why Restaurant Owners Need Analytics (And What Most Get Wrong) Here’s a scenario that plays out constantly: a restaurant owner installs Google Analytics, glances at the “Users” number once a month, and calls it a day. Meanwhile, they’re sitting on a goldmine of data that could tell them exactly which menu items to promote, when […]
April 27, 2026
Tutorials

How to Set Up a Catering and Bulk Order System on Your WooCommerce Restaurant Website (2025)

Why Your Restaurant Needs a Catering and Bulk Order Option Online A corporate office manager needs lunch for 40 people by Thursday. A parent is planning a graduation party for 75 guests next Saturday. A nonprofit coordinator is sourcing food for a weekend fundraiser. All three of them start the same way: they open Google […]
April 27, 2026
Tutorials

How to Set Up Real-Time Order Tracking for Your WooCommerce Restaurant Website (2025)

Why Real-Time Order Tracking Matters for Restaurant Websites Picture this: a hungry customer just placed an order on your <a href="https://www.wpslash.com/how-to-set-up-online-ordering-for-your-restaurant-website-with-wordpress-and-woocommerce-from-scratch/" title="How to Set Up Online Ordering for Your <a href="https://www.wpslash.com/how-to-build-a-customer-loyalty-and-rewards-program-for-your-woocommerce-restaurant-website-2025/" title="How to Build a Customer Loyalty and Rewards Program for Your WooCommerce Restaurant Website (2025)”>Restaurant Website With WordPress and WooCommerce (From Scratch)”>restaurant website. They’re […]
April 27, 2026