projects
/
WP-Themes
/
glmthemes
/
mountpleasant-theme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c789353
)
Created the is_post_type function! For custom type conditionals
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 17 Sep 2015 20:27:22 +0000
(16:27 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Fri, 18 Sep 2015 19:17:23 +0000
(15:17 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
5423734
..
f3000c0
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-299,6
+299,11
@@
function glm_site_scripts()
}
+function is_post_type($type){
+ global $wp_query;
+ if($type == get_post_type($wp_query->post->ID)) return true;
+ return false;
+}
/* Header for posts*/
function glm_get_background() {