has_post_format [ WordPress Function ]
has_post_format ( $format, $post = null )
| Parameters: |
|
| Uses: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: set_post_format, get_post_format, _post_format_link, get_post_format_link, _post_format_request
Check if a post has a particular format
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/has post format « WordPress Codex
Description. Returns a boolean if the specified post format is assigned (true) or not (false) to the post. This will usually be called in the the loop, but can be used ...
codex.wordpress.org - Post Formats « WordPress Codex
Or make use of the has_post_format() conditional tag: if ( has_post_format( 'video ' )) { echo 'this is the video format'; }. An alternate way to use formats is through ...
codex.wordpress.org - has_post_format() vs. get_post_format() - WordPress - Stack ...
Apr 8, 2011 ... I just stepped into the concept of post formats and was wondering why there are two out of 3 functions from the post format "API" offer absolutely ...
wordpress.stackexchange.com - Show Full Content of ALL posts on homepage - PressWork Support
Mar 30, 2012 ... $rightcon = ' class="content-col"'; } else { if(has_post_format("image")) $bool = false; } ... if(function_exists('has_post_format') && !is_singular()) { ...
support.presswork.me