1 (edited by 2015-05-25 21:52:08)

Topic: List first page_alias from a category

Hello,

how to list the first page_alias/title from a category?

greetings perry

Re: List first page_alias from a category

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]