I have a dedicated home page and a blog page to display posts, I will be using a 2 column layout on the blog page but I also want to have two of the most recent posts display on the home page?
I assume I would have to use custom fields? or create a div table and call up the code in index.php? Can I steal the code from the index.php file to display as follows
Code:
<table cellpadding="10" cellspacing="10" border="0"> <?php $column = 1; ?> <?php // The LOOP. Do this for all posts: while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?> <?php if ($column == 1) echo "<tr>"; ?> <td class="column<?php echo $col;?>" style="vertical-align: top" width="50%"> <?php // Deactivated since 3.6.5 #include 'bfa://content_inside_loop'; // Uses the following static code instead: ?> <?php bfa_next_previous_post_links('Top'); // For SINGLE post pages if activated at ATO -> Next/Previous Navigation ?> <?php /* Post Container starts here */ if ( function_exists('post_class') ) { ?> <div <?php if ( is_page() ) { post_class('post'); } else { post_class(); } ?> id="post-<?php the_ID(); ?>"> <?php } else { ?> <div class="<?php echo ( is_page() ? 'page ' : '' ) . 'post" id="post-'; the_ID(); ?>"> <?php } ?> <?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?> <?php bfa_post_headline('<div class="post-headline">','</div>'); ?> <?php bfa_post_byline('<div class="post-byline">','</div>'); ?> <?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?> <?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?> <?php bfa_post_footer('<div class="post-footer">','</div>'); ?> </div><!-- / Post --> </td> <?php if ($column == 2) echo "</tr>"; (($column==1) ? $column=2 : $column=1); ?> <?php // END of the LOOP endwhile; ?> </table>