Get current posts parent category ID, permalink, name, etc via codes below.
Get the sub category of the current product category page
Get the sub category of the current product category page. This code is applied if you are viewing the product archive page. The codes below and a sample category hierarchy list. Example: Category Parent Category 1 Category 2 Category 3 Category 4 Category 1.1 Category 2.1 Category 3.1 Category 4.1 Here’s a code:
Woocommerce product category customizations
Remove subcategory count. Change the number of loop shop columns. Change the number of loop shop columns css. Just add a class on the body tag.
How to get the category ID of the current post?
How to get the category ID of the current post? Just copy the codes below and paste it into your .php file. Another problem is, what if the category ID is a sub category and you need the parent category ID? For Example, the current category ID is 2 and this is a sub category […]
Genesis category hook and customization’s
Get Header Title