7 primary conditions for WordPress to determine pages


// Page not found
if ( is_404() ) {
;
}
// Front page
if ( is_front_page() ) {
;
}
// Archive
if ( is_archive() ) {
;
}
// Blog Page
is_page(‘blog’) {
;
}
// Search
if ( is_search() ) {
;
}
// Singular
if ( is_single() ) {
;
}
// Home
if ( is_home() ) {
;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s