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)
-   -   Need help - want to make the site an article in 4 columns (http://forum.bytesforall.com/showthread.php?t=7080)

Budun May 12, 2010 06:02 AM

Sorry for bad English.

I want to make the site an article in 3-4 columns, sequentially arranged from left to right!
Example:
http://www.imghost.in/images/sbj5gg2y3xf5jgaby8.jpg

I tried to do as here described, does not work.
I use WP 2.9.2 Atahualpa 349
Help please.

juggledad May 12, 2010 10:52 AM

You can look at http://forum.bytesforall.com/showthread.php?t=1288 and try a variation on that code. You will probably have to use a counter.

Budun May 14, 2010 06:28 PM

Hello.
Sorry for bad English

I never cease to marvel at Atahualpa, very convenient and fast in editing.
Using your hint http://forum.bytesforall.com/showthread.php?t=1288
in two columns works, shows well.
But I can not get a positive result of 3-4 column
top row, works well, continued bad.
example:
http://skr-silniy.org/
That's index.php which I edited
PHP Code:

<?php     /* get all options: */
include (TEMPLATEPATH '/functions/bfa_get_options.php');
get_header(); ?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] == 0/* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
    <?php /* This outputs the next/previous post or page navigation. 
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    
bfa_center_content($bfa_ata['content_above_loop']); ?>

    
    
    
    
    
    <table cellpadding="0" cellspacing="0" border="0">
    <?php $column 1?>
    <?php // The LOOP. Do this for all posts:
    
while (have_posts()) : the_post(); $postcount++; ?>
        <?php if ($column == 1) echo "<tr>"?>
        <td class="column<?php echo $col;?>" style="vertical-align: top">
    
        
        
        
        <?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
        
$odd_or_even = (($bfa_ata['postcount'] % 1) ? 'odd-post' 'even-post' ); ?> 

        <?php /* This is the actual Wordpress LOOP. 
        The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
        
bfa_center_content($bfa_ata['content_inside_loop']); ?>
                        
    
    
    </td>        
        <?php if ($column == 3) echo "</tr>"; (($column==2) ? $column=$column=2); ?>        
    <?php // END of the LOOP
    
endwhile; ?> 
  </table>

    
    
    
    
    
    <?php /* This outputs the next/previous post or page navigation and the comment template.
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    
bfa_center_content($bfa_ata['content_below_loop']); ?>

<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; /* END of: If there are no posts */ ?>

<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>

<?php get_footer(); ?>

What do you mean
Quote:

You will probably have to use a counter.
What am I doing wrong!!?? :confused:
Please help, what to do?


All times are GMT -6. The time now is 01:21 AM.

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