Created
February 23, 2012 18:54
-
-
Save heyitsnoah/1894321 to your computer and use it in GitHub Desktop.
Checking To See if a Post is from Percolate
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 | |
$category = get_the_category(); | |
// Check to see if the post has the category "percolate" ... You can set the default category in the plugin. | |
if($category[0]->slug == 'percolate') : ?> | |
THIS IS WHERE YOU PUT YOUR PERCOLATE SPECIFIC FORMATTING | |
<?php else : ?> | |
THIS IS WHERE YOU PUT YOUR FORMATTING FOR NON-PERCOLATE POSTS | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment