Topic: Include news by ID

Hey Everybody, I'm trying to include the news on my website. I have a slider with 6 slides. I'm trying to always include the 6 latest news into each slide. The rest should go to an archive on another page. I Only need the Title and the Text of each news post. How would I do that?

To Illustrate what I'm going :

<div id="SLIDE 1">
<p>    
<?php echo ("$TILTE_NEWEST") ?>
</p>
<p>
<?php echo ("$TEXT_NEWEST") ?>
</p>
</div>


<div id="SLIDE 2">
<p>    
<?php echo ("$TILTE_2ND_NEWEST") ?>
</p>
<p>
<?php echo ("$TEXT_2ND_NEWEST") ?>
</p>
</div>

THANK YOU SO MUCH GUYS

Re: Include news by ID

It seems that you need to use templates here. There is an inbuilt template in Cutenews - Headlines.
Go to Dashboard, Templates, choose the Headlines template, Active News section.
There insert the following:

    <div id="SLIDE">
    <p>[link]{title}[/link]</p>
    <p>{short-story}</p>
    </div>

On the page where you need the news to be shown:

<?php

    $template = 'Headlines';
    include("show_news.php");

?>
Best regards,
CN Support team

3 (edited by CreativeOlive 2020-05-08 08:39:13)

Re: Include news by ID

walgreenslistens

Support_Team wrote:

It seems that you need to use templates here. There is an inbuilt template in Cutenews - Headlines.
Go to Dashboard, Templates, choose the Headlines template, Active News section.
There insert the following:

    <div id="SLIDE">
    <p>[link]{title}[/link]</p>
    <p>{short-story}</p>
    </div>

On the page where you need the news to be shown:

<?php

    $template = 'Headlines';
    include("show_news.php");

?>

Thanks for sharing such an amazing Blog.