Created
August 15, 2014 09:19
-
-
Save tribulant/8f32b5767eae83a2d0b2 to your computer and use it in GitHub Desktop.
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
<?php | |
global $post; | |
$post_id = $post -> ID; | |
if (function_exists('wpco_is_category')) { | |
if ($category = wpco_is_category($post_id)) { | |
// then based on category ID, you can do something... | |
if ($category -> id == X) { | |
echo 'This is some text/html to show on the category page'; | |
} | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment