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 Build a Restaurant Loyalty and Rewards Program with WooCommerce: Points, Coupons, and Repeat Customer Strategies (Complete Setup Guide)

Why Loyalty Programs Matter for Restaurants (and How They Boost Repeat Orders) A customer places their first online order from your restaurant. The food arrives hot, the portions are generous, and they genuinely enjoy the meal. But three days later, they’re scrolling past a dozen other options and your restaurant fades into the background. Without […]
April 1, 2026
Tutorials

How to Set Up and Compare Payment Gateways for Your WooCommerce Restaurant Website: Stripe vs PayPal vs Square (Complete Guide to Faster Checkout, Lower Fees, and Higher Conversions)

Why Your Payment Gateway Choice Matters for Restaurant Ordering A hungry customer has just built their perfect order on your restaurant’s website — a large pepperoni pizza, garlic knots, and a tiramisu. They hit checkout, and then… the payment page takes five seconds to load. Or it redirects them to an unfamiliar screen. Or it […]
March 31, 2026
Tutorials

How to Design a High-Converting Restaurant Menu Page in WooCommerce: UX/UI Best Practices, Food Photography Tips, and Layout Strategies to Maximize Online Orders

Why Your Restaurant Menu Page Design Directly Impacts Online Order Revenue A customer lands on your restaurant’s online menu. Within three seconds, they’ve already formed an opinion about your food — not from tasting it, but from how the page looks. That snap judgment determines whether they’ll scroll through your offerings and place an order, […]
March 31, 2026