<?php
$template = 'headlines';
include 'news/index.php';
?>
<?php
$template = 'headlines';
include 'news/index.php';
?>
Thanks - it worked! However, Is it possible to show more headlins with one template than another? I would like to have eg. 8 "Latest news headlines" on the front page, but on the actual news page i would like for only 4 news to appear.
Furthermore, if i get the headlines from one my frontpage to link to my actual news page:
<div style="font-family: Tahoma; font-size: 10pt"><a href="http://www.mydomain.com/my-news.php">{title}</a>
the links are underlined - is it possible to make them "not underlined" ?
I look forward to hear from you mate :)
<?php
$nppage = '4'; #show 4 news posts
$template = 'headlines';
include 'news/index.php';
?>
<a href="http://domain.com/my-news.php" class="nounderline">{title}</a>
.nounderline {
text-decoration: none;
}
<a class="nounderline" href="http://www.mydomain.com/my-news.php?id={id}">{title}</a>
<a href="fullstory.php?id={id}">{title}</a><br />
<?php
$template = 'Headlines';
include 'news/index.php';
?>
<?php
include 'news/index.php';
?>