After putting the actually code in the index.php it worked…
But just like Karl I would like to have the date thing working as well.. How exactly is the code to look like in order to make it work??
Mine look like this so far:
function get_recent_posts($no_posts = 5, $before = ‘
- ‘, $after = ‘
‘, $show_pass_post = false, $skip_posts = 0) {
global $wpdb, $tableposts;
$request = “SELECT ID, post_title FROM $tableposts WHERE post_status = ‘publish’ “;
if(!$show_pass_post) { $request .= “AND post_password =” “; }
$request .= “ORDER BY post_date DESC LIMIT $skip_posts, $no_posts”;
$posts = $wpdb->get_results($request);
$output = ”;
foreach ($posts as $post) {
$post_date = $post->postdate;
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
$output .= $before . ‘‘. $post_date . ” – ” . $post_title . ‘‘ . $after;
}
echo $output;
}
I think I have done like the it is being told in this thread…