groups

name language licence
Unique Category template PHP Other
Display Google Ad after the first post PHP Other
Custom Fields PHP Other
Dynamic Content Dynamic Content PHP Other
Unique Single template PHP Other
Query Posts PHP Other
Feature post highlighting PHP Other
Customizing flickrRSS PHP BSD

< 1 2 3 4 5 6 7 8 9 10 11 12 >



language: PHP
licence: Other

Feature post highlighting

options: view full snippetsend to code collector
/*Let’s say categoryID 2 is your Feature category and you want to add a CSS class to highlight all posts that are in Feature, you can use the following snippet in The Loop.*/

<?php if ( in_category('2') ) { echo ('class="feature"'); } ?>
	
(Continues...)