Skip to content

Instantly share code, notes, and snippets.

@jmsmrgn
Created Jan 24, 2016
Embed
What would you like to do?
WP - Blog view conditional check
/**
* Blog view conditional check
*/
function is_blog() {
return (is_author() || is_category() || is_tag() || is_date() || is_home() || is_single()) && 'post' == get_post_type();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment