A lot of themes have this built-in so first try adding a category descriptions and see if that solves it. The next way to look at handling this is by modifying the taxonomy archive template by simply adding this below the title in the template:
‘, ” );
?>
But your question says specifically to add it by modifying functions.php. I haven’t tested this but this looks like it work (from: https://generatepress.com/forums/topic/adding-category-description-to-custom-post-type-archive/):
add_action( ‘generate_after_archive_title’, function() {
if ( is_post_type_archive( ‘video’ ) ) {
the_archive_description( ”, ” );
}
} );
It’s set to only apply to a custom post type of ‘video’ but you should be able to modify it.
Related Posts:
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Programmatically create product category and add thumbnail in woocommerce
- Reflect nested categories in appearance > menus
- Create product category and keyword search form in woocommerce? [closed]
- Remove child products from woocommerce category page [closed]
- How to select product category while adding new product in woocommerce? [closed]
- Use get_term_children to get the sub category of a parent category for the current post
- Hide uncategorized products from the shop page
- Remove word “Category” from WooCommerce product page [closed]
- Filtering search results
- WooCommerce change category url and product base
- Output link to category from WP_Query loop of woocommerce products
- display woocommerce all category title on home page
- Add Icons to the Product Category Sidebar Widget WooCommerce
- Add Product categories to WordPress menu without losing hierarchy
- How to get product count with respect to categories in WooComerce
- Custom page for WooCommerce’s /product-category/
- Getting categories id for all products in cart
- Get woocommerce catogry
- get_cat_ID() not wokring
- Display child categories in WooCommerce
- WooCommerce duplicate sub categories and product slugs
- Set post categories to include parents when setting child category
- WooCommerce IF statements not working
- Linking products to categories
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- Omit specific product categories from WooCommerce shortcode
- products nested by subcategories in a current category archive
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- Hide woocommerce category name from specific pages
- Hide woocommerce category name from specific pages
- need to add custom field in more products
- How to redefine the sorting of product categories by menu_order?
- Pagination is not working properly in Product Category/Tag pages
- How to recreate a copy of a product category in WooCommerce? [closed]
- Sorting category products not working
- Remove product category placeholder image (Woocomerce)
- Categories for each brands
- Unwanted Duplicate Product Categories in WooCommerce
- Customize WordPress widget – Product Category
- WordPress/Woocommerce only show category in shop to a single role
- WooCommerce – How to show specific category first-rest of products-specific category last
- Woocommerce custom category page with pagination [closed]
- Do not show sub categories in the loop on archive-product.php
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- why get_the_post_thumbnail( the_ID()) echos extra post id
- How to access deleted term inside delete_product_cat action
- Apply WordPress function on specific woocommerce product categories only
- Filter WooCommerce archive pages by an additional category
- Grandchild Term Things Grandfather Term is It’s Parent
- Custom tax_query filter not working for Woocommerce product categories
- How do order product categories – on a parent category page – in Woocommerce?
- Woocommerce filter function not updating
- Adding custom ID field to the categories
- How can i change what one category displays?
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- Woocommerce search form with category select
- How to display product with two condition, category and brand taxonomy
- Show different menu on each woocommerce category page
- WooCommerce shared categories
- Displaying Single Product Page Parent and Child Category
- category description not showing in my woocommerce
- Conditional label Woocommerce archive [unsolved]
- How to show given products only using product id array from specific category page in woocommerce
- Shop Category Pages missing s
- WooCommerce REST API not returning the default products category
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- Show the parent taxonomy by creating shortcode in woocommerce?
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- Get WooCommerce product category list in functions.php
- in post content shortcode works, but hardcoded in same page template doesn’t?
- Is there a reason to put a product in both the Child and Parent Categories?
- WordPress category title not update in navigation menu
- WooCommerce showing active product categories on single product page
- How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?
- How to display custom fields as table in Woocommerce
- How do I merge WooCommerce categories with the same name?
- How to delete WooCommerce categories in bulk that only have one product
- Product Category page showing all products
- product_cat image url from database
- Woocommerce product catalog, products with different description
- WooCommerce – Get products from category right before deleting category
- set a parent category in a product woocommerce
- No results found for second level category
- How to display products with multiple conditions, product_id and category_id
- Categories and Tags Conflict after Woocommerce Installation
- How to get related category/categories in WordPress archive page
- woocommerce – products by category slug? [closed]
- How can I add a Categories page link to a menu? [closed]
- Custom Woocommerce Category view
- Displaying categories and subcategories without link
- Woocommerce – Display product category of product in Orders page
- Changing Woocommerce categories programatically
- Woocommerce Force the category choice before creating new product? [duplicate]
- Categories and products woocommerce wordpress
- Add custom fields to Woocommerce Category Page
- Restricted category in Woocommerce [closed]
- How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?
- What would be the easiest way to show subcategories under specific parents as text links only?