Recent Posts Script
-
Hello!
Does anyone know how I can get the following recent posts code to work for 3.0 MU? My sub-domain sites will NOT have their own blogs, but I would like all of them to display recent posts from the root domain:
<ul> <?php $number_recents_posts = 6;//Can be how much you want $recent_posts = wp_get_recent_posts( $number_recents_posts ); foreach($recent_posts as $post){ echo '<li><a href="' . get_permalink($post["ID"]) . '" title="Look '.$post["post_title"].'" >' . $post["post_title"].'</a><br /><div class="newsdate">Posted: '.$post["post_date"].'</div></li> '; } ?> </ul>Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Recent Posts Script’ is closed to new replies.