get_category_template [ WordPress Function ]
| Uses: | |
| Returns: |
|
| Defined at: |
|
Retrieve path of category template in current or parent template.
Works by first retrieving the current slug for example 'category-default.php' and then trying category ID, for example 'category-1.php' and will finally fallback to category.php template, if those files don't exist.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/get category template « WordPress Codex
Description. Retrieve path of category template in current or parent template. Works by retrieving the current category ID, for example 'category-1.php' and will ...
codex.wordpress.org - get_category_template() WordPress function reference, arguments ...
get_category_template(). Retrieve path of category template in current or parent template. Works by first retrieving the current slug for example ...
queryposts.com - get_category_template | A HitchHackers guide through WordPress
Feb 12, 2011 ... function get_category_template() {}. Retrieve path of category template in current or parent template. Works by first retrieving the current slug for ...
hitchhackerguide.com - php - Apply wordpress Template of category to posts - Stack Overflow
Checking get_category_template() in wp-includes/theme.php` we ... function get_category_template() { $cat_ID = absint( get_query_var('cat') ) ...
stackoverflow.com