cat_is_ancestor_of [ WordPress Function ]
cat_is_ancestor_of ( $cat1, $cat2 )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: term_is_ancestor_of, get_post_ancestors, get_ancestors, _get_post_ancestors, path_is_absolute
Check if a category is an ancestor of another category.
You can use either an id or the category object for both parameters. If you use an integer the category will be retrieved.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/cat is ancestor of « WordPress Codex
Description. This Conditional Tag Check if a category is an ancestor of another category. This is a boolean function, meaning it returns either TRUE or FALSE.
codex.wordpress.org - WordPress › Support » cat_is_ancestor_of
[resolved] cat_is_ancestor_of (7 posts). id eric. Member Posted 2 years ago #. if( is_category('11') || cat_is_ancestor_of('11', $catid)). With the above statement, ...
wordpress.org - Why do we need cat_is_ancestor_of()? | Sofarider
Sep 29, 2010 ... I guess you've got the point so far. cat_is_ancestor_of() is supposed to check whether current category belongs to blog or portfolio part. Current ...
rider.sofarider.com - cat_is_ancestor_of (WordPress Function) - WPSeek.com
WordPress lookup for cat_is_ancestor_of, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com
Gebruikersdiscussies [ wordpress.org ]
- Seraph-Design on "Child Category IDs--So Close! please help"
- id eric on "cat_is_ancestor_of"
- MichaelH on "cat_is_ancestor_of"
- id eric on "cat_is_ancestor_of"
- MichaelH on "cat_is_ancestor_of"
- id eric on "cat_is_ancestor_of"
- id eric on "cat_is_ancestor_of"
- id eric on "cat_is_ancestor_of"
- soundandshape on "Child Category IDs--So Close! please help"
- soundandshape on "Child Category IDs--So Close! please help"