List of Conditional Tags

Conditional Tags are a boolean data type that can be used in your Template Files to alter the display of content depending on the conditions that the current page matches. They tell WordPress what code to display under specific conditions. Conditional Tags usually work with PHP if /else Conditional Statements and have close relation with WOrdPress Template Hierarchy. .

Warning: You can only use conditional query tags after the WP_Query is set up or  with action hook.

Complete List of Conditional Tags

Top ↑

The Conditions For …

All of the Conditional Tags test to see whether a certain condition is met, and then returns either TRUE or FALSE. The conditions under which various tags output TRUE is listed below. Those tags which can accept parameters are so noted.

Top ↑

The Main Page

Top ↑

The Front Page

Top ↑

The Blog Page

Top ↑

A Single Post Page

Top ↑

A PAGE Page

Top ↑

Has Post Thumbnail

Top ↑

A Single Page, a Single Post, an Attachment or Any Other Custom Post Type

Top ↑

A Category Page

Top ↑

A Tag Page

Top ↑

Top ↑

An Author Page

Top ↑

A Date Page

Top ↑

Any Archive Page

Top ↑

A Search Result Page

Top ↑

A 404 Not Found Page

Top ↑

Is Dynamic SideBar

Top ↑

Is Sidebar Active

Top ↑

Is Widget Active

Top ↑

Is User Logged in

Top ↑

Email Exists

Top ↑

Username Exists

Top ↑

A Paged Page

Top ↑

Right To Left Reading

Top ↑

An Attachment

Top ↑

Attachment Is Image

Top ↑

A Local Attachment

Top ↑

Post Type Exists

Top ↑

Is Main Query

Top ↑

A New Day

Top ↑

A Syndication

Top ↑

A Trackback

Top ↑

A Preview

Top ↑

Has An Excerpt

Top ↑

Has A Nav Menu Assigned

Top ↑

Is Blog Installed

Top ↑

Part of a Network (Multisite)

Top ↑

An Active Plugin

Top ↑

A Child Theme

Top ↑

Theme supports a feature

Top ↑

Is Previewed in the Customizer