2011-02-05, 23:27:09
Hello!
I want to add a read more button.
I can create function to edit and save short and full text but i cant make the more button (link) to show the full article
I dont know what to put as link.
I want to add a read more button.
I can create function to edit and save short and full text but i cant make the more button (link) to show the full article
Code:
function show_articles($n) {
$articles = get_articles();
if (isset($n) && $n > 0) {
$index = (isset($_GET['page'])) ? $_GET['page'] : 0;
$pages = array_chunk($articles, $n);
$articles = $pages[$index];
}
foreach ($articles as $article) {
$id = basename($article, ".xml");
show_single($id);
?>
<a href="WHAT TO PUT HERE?">more</a>
<?php
}
if (isset($n))
show_navigation($index, sizeof($pages));
}
I dont know what to put as link.