Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support How to block certain category?
Lsteffler
Posted on 01 Oct 2010, 14:37:27

Access: Member
Total Posts: 16
Joined: 2010-07-07


I would like to see displayed all categories except the category advertising, how?
#2898
Chris
Posted on 06 Oct 2010, 04:34:25

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Do you mean display all news articles assigned to the categories except "advertising"? if so then the only way to achieve this would be to manually specify all the other categories before the include

Code:
<?php
$cat
[] = "Cat";
$cat[] = "Cat2";

include 
'news/index.php';
?>
#2901
Lsteffler
Posted on 06 Oct 2010, 15:02:28

Access: Member
Total Posts: 16
Joined: 2010-07-07

OK, I've used this way, placing the categories you wish to view, but thought it could have only one way to hide a specific category.

It's something you can implement a future version, because imagine if you have some 50 categories, and want to hide just one, need to put all but her.

thanks!
#2910
Network-13.com © 2013