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 ]
Google Arama Sonuçlarý
- Function Reference/has category « WordPress Codex
Description. Check if the current post has any of the given categories. The given categories are checked against the post's categories' term_ids, names and ...
codex.wordpress.org - 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 - 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