function wptouch_the_permalink() { echo wptouch_get_the_permalink(); }
function classic_ipad_recent_posts($num) { $settings = wptouch_get_settings(); $excluded_cats = $settings->classic_excluded_categories; $excluded_tags = $settings->classic_excluded_tags; global $post; $args = array('numberposts' => $num, 'category__not_in' => $excluded_cats, 'tag__not_in' => $excluded_tags); $recent_posts = get_posts($args); foreach ($recent_posts as $post) { setup_postdata($post); echo '<li><span>' . date("M j", strtotime($post->post_date)) . '</span><a href="' . wptouch_get_the_permalink() . '">' . wptouch_get_title() . '</a></li>'; } }