pbmaxca Posted July 15, 2008 Share Posted July 15, 2008 So i know enough about php/CuteNews to know that you can have a feed that doesn't show every news post that you make. I want to have a group of "show" and a group of "no-show" articles. I've already made the categories in CuteNews and have sorted my articles accordingly...Right now everything is pulled up in my main page feed...I just want the "show" items to be seen on that page. My question is...I know about bringing up the category that I need, but the template I'm using has other code. If I get ride of the other code will I lose my search and my archives features? See below for the code explanation... What shows up now... <?PHP /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here we decide what page to include ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ if($_POST['do'] == "search" or $_GET['dosearch'] == "yes"){ $subaction = "search"; $dosearch = "yes"; include("./cutenews/search.php"); } elseif($_GET['do'] == "archives"){ include("./cutenews/show_archives.php"); } elseif($_GET['do'] == "stats"){ echo"You can download the stats addon and include it here to show how many news, comments ... you have"; /* include("$path/stats.php"); */ } else{ include("./cutenews/show_news.php"); } ?> What does the code look like to just show one of my categories instead of all of them? My site is http://jstroup.fan-sites.org Thanks! Patty Link to comment https://forums.phpfreaks.com/topic/114757-phpcutenews-categories/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.