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 calling specific categories
Alankeys
Posted on 25 Dec 2009, 09:26:57

Access: Member
Total Posts: 107
Joined: 2009-11-28



User has extensively tried to call only a particular category but has been unable to get execution. The follow code was given in support thread.


<?php
$template = "headlines";
$cat[] = "cat1";
include './news/index.php';
?>


the following code can also be created by reading admin help screen / readme.txt
<?php
$template = "headlines";
$cat[] = "category1";
include './news/index.php';
?>



User also tried

$cat[] = "cat1";
$cat = "cat1";
$category = "cat1";
$cat[] = "category1";
$cat = "category1";
$category = "category1";
$cat[] = "Cat1";
$cat = "Cat1";
$category = "Cat1";
$cat[] = "Category1";
$cat = "Category1";
$category = "Category1";
$category = "Director_Dealings";
$cat[] = "Director_Dealings";
$cat = "Director_Dealings";

$cat[1] = "cat1";
$cat[1] = "category1";
$cat[1] = "Cat1";
$cat[1] = "Category1";
$cat[1] = "Director_Dealings";


User has been unable to get execution. Pls advise about users misunderstanding
#1363
Alankeys
Posted on 26 Dec 2009, 10:59:31

Access: Member
Total Posts: 107
Joined: 2009-11-28

This has now been solved and syntax confirmed as


<?php
$template = "headlines";
$cat[2] = "Company Reports";
include './news/index.php';
?>
#1380
Network-13.com © 2013