Just get the latest posts code from documentation to run
-
Newbie here!
I just read this in documentation which i need:
<h2>Recent Posts</h2> <ul> <?php $recent_posts = wp_get_recent_posts(); foreach( $recent_posts as $recent ){ echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> '; } ?> </ul>
I jsut want to show in my frontpage a list of links from a specific category. I will have to modify the above code i know, but HOW i get this to show on a page or widget? what is tha procedure.
I got a template from themeforest which doesnt have a simple list so i want to create one from scratch.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Just get the latest posts code from documentation to run’ is closed to new replies.