Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Putting 2-4 recent post excerpts on static home page aswell as blog page?

Old Nov 21, 2011, 12:40 PM
48 posts · Jun 2011
England, United Kingdom
I have been working on a new blog and I have a weird one and I haven't really seen it done before to my knowledge.

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

<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 -->	

<?php if ($column == 2) echo "</tr>"; (($column==1) ? $column=2 : $column=1); ?>

<?php // END of the LOOP
endwhile; ?>
Can someone give me some guidance please?
Old Nov 21, 2011, 04:41 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
Juggledad's Multi-Column page template should do the trick. It is in the Gold forum which does require a donation of $20 or more and since you are already at $10 you are half way there.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Nov 23, 2011, 06:17 AM
48 posts · Jun 2011
England, United Kingdom
I already know how to do the multi column, that's not the problem.

What I need is to be able to have excerpts from posts on the home page as well as the blog page.
Old Nov 23, 2011, 07:29 AM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check out the ato->Configure Excerpts options
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plz Help !!i want static Home Page and my recent posts below it the7skulls Center area post/pages 1 Sep 3, 2011 10:21 PM
Static home page but add blog snippets aswell jkfly4 Excerpts, Read more, Pagination 0 Mar 10, 2011 04:18 PM
[SOLVED] If Home Page is static where does blog go? WineButler Center area post/pages 2 Jun 22, 2010 10:05 AM
How Do I Add Recent Post To A Static Front Page??? Sunmarket Excerpts, Read more, Pagination 2 Nov 23, 2009 07:56 PM

All times are GMT -6. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.