Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: custom home
- */
- ?>
- <?php get_header(); ?>
- <div id="wrap">
- <!-- Main Content-->
- <img src="<?php bloginfo('template_directory');?>/images/content-top.gif" alt="content top" class="content-wrap" />
- <div id="content">
- <!-- Start Main Window -->
- <div id="main">
- <div class="new_post">
- ...
- </div>
- <h2>Recent Posts</h2>
- <ul>
- <?php
- $args = array( 'numberposts' => '5' );
- $recent_posts = wp_get_recent_posts( $args );
- foreach( $recent_posts as $recent ){
- echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
- }
- ?>
- </ul>
- </div>
- <?php get_template_part('includes/entry'); ?>
- </div>
- <!-- End Main -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement