Answers for "if category page wordpress"

1

wordpress if is in category

// Find out in Wordpress (with PHP) if a single/page is in a chosen category
if (in_category('fruit')) {
    echo "This single/page is in category 'fruit'.";
}
Posted by: Guest on May-18-2021
1

woocommerce if is category page

if( is_product_category() ) {
	// yay, we are on a product category page!
} else {
 
}
Posted by: Guest on October-30-2020
0

is category wordpress

is_category()
Posted by: Guest on February-12-2020

Code answers related to "if category page wordpress"

Browse Popular Code Answers by Language