Created
January 24, 2016 00:43
-
-
Save jmsmrgn/9d67549eb1aa5a99dfaf to your computer and use it in GitHub Desktop.
WP - Blog view conditional check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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