Trying to exclude certain categories from the homepage. Now BlogHue's awesome code worked fine, but then they added in another index for a new section on my site, and it doesn't work anymore.. And they can't fix it.. And somehow I have 2 indexes..
So I'm looking at the Index loop now: (This is what I want to do) I'm assuming it will work? Since the functions.php version didn't.
Show Posts From Selected Categories On Wordpress Blog Homepage
Index
So what is that $i=1 for? It's written all over the code in the indexes in random sections.. God damn, so frustrated.. All I want to do is exclude certain cats from my homepage..
So I'm looking at the Index loop now: (This is what I want to do) I'm assuming it will work? Since the functions.php version didn't.
Show Posts From Selected Categories On Wordpress Blog Homepage
Index
Index1<?php $i=1; if (have_posts()) : ?>
But! That site says it should look like this:<?php $i=1; if (have_posts()) : ?>
<?php $category_id = get_cat_ID( 'Weight Loss' ); //echo $category_id ; ?>
And then modified to this:<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php if (!is_paged() and is_home()) { query_posts('cat=519,186,2'); wp_reset_query();
So what is that $i=1 for? It's written all over the code in the indexes in random sections.. God damn, so frustrated.. All I want to do is exclude certain cats from my homepage..