How can I organize my post in different rows and columns
-
In a standard page I would get the title like this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div> <?php the_title(); ?> </div> <?php endwhile; endif; ?>
This would put each title in its own div.
I am looking for a way to have maybe 30 or 40 rows and have each row display 1, 2 or 3 columns.So instead of having
<div> <h1>Heading 1</h1> </div> <div> <h1>Heading 2</h1> </div> <div> <h1>Heading 3</h1> </div>
I would get something more like this
<div> <div> <h1>Heading 1</h1> </div> </div> <div> <div> <h1>Heading 2</h1> </div> <div> <h1>Heading 3</h1> </div> </div> <div> <div> <h1>Heading 4</h1> </div> </div>
Can anyone help me with this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can I organize my post in different rows and columns’ is closed to new replies.