Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Multiple Post page 2 columns ( I have searched for this) (http://forum.bytesforall.com/showthread.php?t=15350)

lakewooditsupport Sep 10, 2011 05:57 AM

Multiple Post page 2 columns ( I have searched for this)
 
I have searched for thing and can't find an up to date version of the method to make this work.

I want to have 2 columns in the blog page for my site, I also want to have a thumbnail images in the post preview them have a full version of the image in the post.

I have tried different inserts in the index.php file and can't get this to work.

Could anyone give me a hand or point me in the right direction?

lakewooditsupport Sep 10, 2011 12:24 PM

Okay I managed to get it sorted, for anyone viewing and wondering how.

I used this code for the display posts in the index.php

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>

Then used featured images to have a thumb nail on the excerpts.

Have a look at the result here: http://www.lakewoodmedia.co.uk

juggledad Sep 10, 2011 12:41 PM

Sorry I didn't get to tell you this earlier, there is a tutorial in the gold Forums 'HOWTO: "JUGGLEDAD's two columm posts" PAGE template with posts above the columns'

mimi Nov 16, 2011 05:19 AM

Thanks for this, would be great to be able to get more columns though.


All times are GMT -6. The time now is 01:07 PM.

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