Title: Function for Sub-Sub Categories
Last modified: August 21, 2016

---

# Function for Sub-Sub Categories

 *  [mxer720](https://wordpress.org/support/users/mxer720/)
 * (@mxer720)
 * [12 years ago](https://wordpress.org/support/topic/function-for-sub-sub-categories/)
 * Hi all,
 * I’m looking for a way to determine of a category has two parents or not, aka 
   sub-sub category. My purpose is to display a different woocommerce template on
   this return, but I don’t know enough about WP and PHP to figure out if the category
   has two parents…
 * Thanks,
    -Lane

Viewing 1 replies (of 1 total)

 *  [reneeinspired](https://wordpress.org/support/users/reneeinspired/)
 * (@reneeinspired)
 * [12 years ago](https://wordpress.org/support/topic/function-for-sub-sub-categories/#post-4978131)
 * Lane,
 * Hi. If I am understanding your question correctly, I have a visual method that
   may be of service.
 * Log into your wp dashboard and on the left under posts click on categories.
 * Categories with dashes in front of them have parents.
 * Categories with two dashes in front of them have sub sub.
 * Does this help?
 * -Renee’

Viewing 1 replies (of 1 total)

The topic ‘Function for Sub-Sub Categories’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [reneeinspired](https://wordpress.org/support/users/reneeinspired/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/function-for-sub-sub-categories/#post-4978131)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
