Grow your CSS skills. Land your dream job.

Posts to display in 2 columns

  • # February 8, 2010 at 6:12 pm

    Hi all.

    Having a little trouble getting the main posts on http://beautyidentified.com to go side by side on the front page.

    I don’t need them in line though. Just to go in left and right columns staggered. If helps code attached

    Code:

    < ?php
    // Split the main content pages from the options, and put in an array
    $featpages = get_option('woo_main_pages');
    $featarr=split(",",$featpages);
    $featarr = array_diff($featarr, array(""));
    ?>
    < ?php foreach ( $featarr as $featitem ) { ?>
    < ?php query_posts('page_id=' . $featitem); ?>

    < ?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    ” title=”< ?php the_title(); ?>” rel=”bookmark”>< ?php the_title(); ?>

    < ?php if ( get_post_meta($post->ID, ‘image’, true) ) { ?>
    “>Read more

    < ?php endwhile; endif; ?>
    < ?php } ?>

    Any ideas would be much appreciated.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".