has_category [ WordPress Function ]
has_category ( $category = '', $post = null )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Check if the current post has any of given category.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- has_category (WordPress Function) - WPSeek.com
WordPress lookup for has_category, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - categories - Exclude posts without category from loop - WordPress
Feb 10, 2011 ... I've written a has_category($post_id) function that can be used in the loop like this: ... Note that my has_category() function treats posts with the ...
wordpress.stackexchange.com - #16718 (Deprecate in_category in favor of has_category ...
Description. #12526 introduced has_category. There was some patches there which did and did not deprecate in_category. End result is that they're now both in ...
core.trac.wordpress.org - has_category | A HitchHackers guide through WordPress
Feb 24, 2011 ... Source code. function has_category( $category = '', $post = null ) { return has_term( $category, 'category', $post ); }. 9784 ...
hitchhackerguide.com