Hi guys,
I want to exclude a category from being displayed on the front page. Because I'll post that category in other page.
Do you have idea on how to exclude a category?
Thanks!
Hi guys,
I want to exclude a category from being displayed on the front page. Because I'll post that category in other page.
Do you have idea on how to exclude a category?
Thanks!
Open up index.php and replace following line:
$negative_cats = preg_replace("!(\d)+!","-${0}$0", $k_option['mainpage']['main_cat_final']);
with:
$negative_cats = preg_replace("!(\d)+!","-${0}$0", $k_option['mainpage']['main_cat_final']);
$negative_cats .= ',16,26,45';
and instead of 16,26,45 insert the category id(s) you want to exclude. Seperate the ids by using a comma (,).
Dude,
Thanks for your help. I put the code you mentioned and insert just the category id 13, however now the main page is not display any category (I´ve got a few categories that previusly where shown up).
http://www.chacrasdecoria.travel
Thanks!
Dude I just realize that the category IDs to put in the code are those I want to show up. So the code exclude those that are not listed there.
Maybe it work with the negative simbol before, so you don´t need to clarify the positivies ones.
Thanks!
This topic has been closed to new replies.