Conditional tags (post types and queries)
if( is_single() ){
// single post type page
}
wp_doing_ajax() ----------Works for an AJAX request in WordPress.
wp_doing_cron() ----------Works for WordPress cron requests.
is_ssl() ----------Works for HTTPS (SSL).
is_front_page() ----------Home page.
is_home() ----------Posts page (or Home page).
is_single() ----------Page of post of any type except: attachment and page.
is_singular() ----------Page of post of any type.
is_page() ----------The page of a Static page.
is_page_template() ----------Whether or not a template file is used for the page.
is_attachment() ----------Attachment page.
is_search() ----------Search result page.
is_archive() ----------Archive page: category, tag, author, date.
is_category() ----------Category page.
is_tag() ----------Tag page.
is_tax() ----------Page of custom taxonomy.
is_post_type_archive() ----------Page of custom post type archive.
is_author() ----------Page of author posts archive.
is_date() ----------Archive page by date.
is_year() ----------Archive page by Year.
is_month() ----------Archive page by Month.
is_day() ----------Archive page by Day.
is_time() ----------Archive page by an hour, minute, second.
is_paged() ----------Pagination page.
is_404() ----------"Not found" page.
is_preview() ----------Post preview page.
is_feed() ----------Feed page.
is_admin() ----------Admin panel.
is_network_admin() ----------Administration panel "Network management" of Multisite sites.
is_blog_admin() ----------Section of the admin panel of a separate site in Multisite.
is_user_admin() ----------The "User" section of the admin panel in Multisite.
is_customize_preview() ----------Page of customizer in the admin area.
is_robots() ----------Query to the robots.txt file.
is_embed() ----------Page of embedding post.
is_comment_feed() ----------Comments feed page.
is_trackback() ----------Page of pings (trackback).