Title: create 2 column posts starkers theme
Last modified: August 20, 2016

---

# create 2 column posts starkers theme

 *  [melanie bund](https://wordpress.org/support/users/melanie-bund/)
 * (@melanie-bund)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/create-2-column-posts-starkers-theme/)
 * i would like to create 2 column posts “colleft” and “colright” in index.php starkers
   theme as i want an intro text in one and a gallery in the other – as you can 
   see both are now in first column
    **site** [http://www.maonaimagem.com/wordpress/](http://www.maonaimagem.com/wordpress/)**
   code**
 *     ```
       <div id="colleft">
       <?php if ( have_posts() ): ?>
       <ol>
       <?php while ( have_posts() ) : the_post(); ?>
       	<li>
       		<article>
       			<h2><a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
   
       			<?php the_content(); ?>
       		</article>
       	</li>
       <?php endwhile; ?>
       </ol>
       <?php else: ?>
       <h2>No posts to display</h2>
       <?php endif; ?>
       <div id="colright"></div>
       <div class="clear"></div>
       ```
   
 * Can anyone help?
    thanks in advance

Viewing 1 replies (of 1 total)

 *  Thread Starter [melanie bund](https://wordpress.org/support/users/melanie-bund/)
 * (@melanie-bund)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/create-2-column-posts-starkers-theme/#post-3244567)
 * Hi
    I would still like to create 2 columns but now diff posts in 2 columns in
   the STARKERS THEME – the code i have is –
 *     ```
       <div id="indexpost"><?php if ( have_posts() ): ?>
   
       <ol>
       <?php while ( have_posts() ) : the_post(); ?>
   
       <li>
       		<article>
       			<h2 class="index"><a>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
       			<p class="indexpost"><?php the_content(); ?></p>
       		</article>
       	</li>
       <?php endwhile; ?>
       </ol>
       <?php else: ?>
       <h2>No posts to display</h2>
       <?php endif; ?>
       </div>
   
       have tried
   
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       <div id="indexpost">
       <article>
       			<h2 class="index"><a>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
       			<p class="indexpost"><?php the_content(); ?></p>
       		</article>
   
       <div class="news" id="post-<?php the_ID(); ?>">
       <article>
       			<h2 class="index"><a>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
       			<p class="indexpost"><?php the_content(); ?></p>
       		</article>
       </div><!--indexpost-->
       </div><!--news-->
       <?php endwhile; ?>
       <?php else: ?>
       <h2>No posts to display</h2>
       <?php endif; ?>
       ```
   
 * but does not work
    CAN SOMEONE HELP

Viewing 1 replies (of 1 total)

The topic ‘create 2 column posts starkers theme’ is closed to new replies.

## Tags

 * [2-column](https://wordpress.org/support/topic-tag/2-column/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [starkers](https://wordpress.org/support/topic-tag/starkers/)

 * 1 reply
 * 1 participant
 * Last reply from: [melanie bund](https://wordpress.org/support/users/melanie-bund/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/create-2-column-posts-starkers-theme/#post-3244567)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
