blog_category
A blog category.
Generated from the platform code - always matches what the theme engine allows.
A blog category.
Available on: blog.
Properties
| Property | Type | Description |
|---|---|---|
blog_category.id |
string | Category identifier. |
blog_category.title |
string | Category name. |
blog_category.handle |
string | The category handle. |
blog_category.path |
string | The full path, for example guides/shipping - pass it to query_posts(). |
blog_category.url |
string | Address of the category page. |
blog_category.description |
string or null | Category description. |
blog_category.seoTitle |
string or null | SEO title. |
blog_category.seoDescription |
string or null | Meta description. |
blog_category.depth |
number | 0 for a top-level category. |
blog_category.parent |
blog_category or null |
The parent category. |
blog_category.ancestors |
list of blog_category |
The path from the top-level category to the parent, for breadcrumbs. |
blog_category.children |
list of blog_category |
Subcategories with published posts. |
blog_category.hasChildren |
boolean | True when there are subcategories. |
blog_category.siblings |
list of blog_category |
Categories with the same parent, this one included - tabs on a leaf category. |