How show a single Category on the Homepage

Latest Reply from Xosé Antón Fernández de Soto Rodríguez at 2013-11-21 08:38:54

I want show only one category at the homepage. I found this:

"In the index.php just BELOW

<? php if (have_posts ()): while (have_posts ()): the_post ();?>


<? php if (in_category ('XXXXXXX')) {?>

and just ABOVE the line <? php endwhile; ?>


<? php}?>"

I tried this in the theloop.php file and the homepage shows single category correctly, but when click other category shows nothing.

Can anyone help me with this little issue?

Sorry my english, thanks
Best regards

Leave a reply

Add codeAdd image