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
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!