is_single [ WordPress Function ]
is_single ( $post = '' )
| Parameters: |
|
| Uses: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
Is the query for a single post?
Works for any post type, except attachments and pages
If the $post parameter is specified, this function will additionally check if the query is for one of the Posts specified.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- is_single() - WordPress Codex
Description. This Conditional Tag checks if any single post is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.
codex.wordpress.org - Conditional Tags « WordPress Codex
is_single(): When any single Post (or attachment, or custom Post Type) page is being displayed. (False for Pages); is_single( '17' ): When Post 17 is being ...
codex.wordpress.org - The Difference Between is_singular() and is_single() | Digging into ...
Oct 25, 2009 ... You know that you can target single-view pages with the conditional tag, is_single(): This is a great way to conditionally apply styles, scripts, ...
digwp.com - 3.0 - is_home() and is_single() Not Working as Expected with ...
Oct 14, 2010 ... <?php if (is_home()) { dynamic_sidebar('frontpage-sidebar'); } if (is_single()) { dynamic_sidebar('single-post-sidebar'); } .... ?> Normally this ...
wordpress.stackexchange.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- bk_design on "Display Page Template for Post by ID"
- SocialBlogsite on "post type challenge"
- SSchat on "Loading a script into post pages only"
- maneeshnanu on "is_single()/is_home() not working in external files"
- zeaks on "is_single problem in plugin"
- drkknght on "conditional tag for single posts within a taxonomy"
- josephina1988 on "conditional tag for single posts within a taxonomy"
- josephina1988 on "conditional tag for single posts within a taxonomy"
- digibucc on "Creating plugin, not showing up where I want it."
- jmayoff on "Creating plugin, not showing up where I want it."