Filter category on home page in WPFolio
-
I’m trying to filter out a category of post from my home page ( (id 6, my podcasts). I found some code that is supposed to work, but I have it in the wrong place because it has prevented the previous/next links from working properly (they keep loading the same initial page of posts). When I remove this code things work properly but that category of posts I don’t want displayed (of course) have returned. I am not dumb but am no coder (when say ut this in the loop, I don’t know what that means, for instance) Any help is greatly appreciated. Here’s the code I found, I put it in my child index.php
<?php if ( is_home() ) { query_posts( 'cat=-6' ); } ?>
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Filter category on home page in WPFolio’ is closed to new replies.