Hi,
Please try this.
edit_cat_loop_home
Code:
sub {
my $category_loop = $_[0];
my @category_loop;
foreach (@$category_loop){
if ($_->{ID} == 1) { next ; }
push @category_loop, $_;
}
return { category_loop => \@category_loop }
}
Simply change:
..to the ID number. If you want to stop more than one category showing, just change to:
Code:
if ($_->{ID} == 1 || $_->{ID} == 123 ) { next ; }
..etc.
Call with:
Code:
<%edit_cat_loop_home($category_loop)%>
(at the top of the home.html template)
I've tested this, and seems to work fine :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work! Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500) Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins! Compare our different Plugin packages *new* Free CSS Templates