Topic: List first page_alias from a category
Hello,
how to list the first page_alias/title from a category?
greetings perry
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → List first page_alias from a category
Hello,
how to list the first page_alias/title from a category?
greetings perry
Hello,
how to list the first page_alias/title from a category?
greetings perry
solved
function first_page_title($cat){
include_once ('cutenews/core/init.php');
$news = cn_get_news();
//print_r($news);
foreach( $news[0] as $nid => $n ) {
if($n[c]== $cat){
echo $n['pg'];
break;
}
}
}
* [url=https://cutephp.com/forum/index.php?category=works&page=<?php first_page_title(]"><h1>works</h1>[/url]
CutePHP Forums → Problem Solving / Help & Support → List first page_alias from a category
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.