Topic: How to show list of category links?

Hi.

I just installed cute news and it's working great, but I want to add a sidebar that among other things displays all of the categories which can be clicked to show all of the news posts from those categories.

How do I find the links for displaying a specific category of posts?

Thanks.

Re: How to show list of category links?

For this purpose use "News Integration Wizard" (Options > Integrate News into your site)
The following block will be generated

<?php
        $number="5";
        $category="1";       
        include("...path_to_cutenews.../show_news.php");
    ?>

This code should be included in any file, for instance index.php where news of special category is shown.
Then change fixed meaning $category="1"; for example

<?php
        $number="5";
        $category = isset($_GET['ucat']) ? $_GET['ucat'] : 0;
        $category = preg_replace('/[^0-9\,]/', '', $category);
        include("...path_to_cutenews.../show_news.php");
    ?>

ucat is ID of the category for showing or the list of ID.
Now you can generate all necessary links

     

   - [url=/index.php?ucat=1]category 1 only[/url] 
        - [url=/index.php?ucat=2]category 2 only[/url] 
        - [url=/index.php?ucat=1,2]category 1 and 2 only[/url]

You can find ID in Options > Edit categories

Best regards,
CN Support team

Re: How to show list of category links?

Thanks!  https://cutephp.com/forum/style_emoticons/default/biggrin.gif