/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if ( in_category('News') ) { // belongs to cat } // or array // belongs to one or more of the categories }
URL: http://codex.wordpress.org/Function_Reference/in_category
Comments
