| name | language | licence |
|---|---|---|
| Unique Single template | PHP | Other |
| Query Posts | PHP | Other |
| Feature post highlighting | PHP | Other |
| Retrieve and Display Images from a WordPress Post | PHP | Other |
| Attachment display | PHP | Other |
| function_exists() | PHP | Other |
| Linking Without Using Permalinks | PHP | Other |
| Static Page with Mini-Loop | PHP | Other |
< 1 2 3 >
language: PHP
licence: Other
Feature post highlighting
options: view full snippet • send 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"'); } ?>



library
buttons (3)
wp (93)