Fields in one row
-
Hello all
I want my posts to be aligned in one row this way:
title content commentsnumber
For example:1 In the beginning Almighty created the heaven and the earth (0)
2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. (2)
3 And Almighty said, Let there be light: and there was light. (1)Where 1 2 and 3 – are the Title for each verse content. (0) (2) and (1) – is a number of the comments to the verse. So when one clicks on this number, he will get the page with the comments.
Here’s the code for this:
<div id="content" class="col left"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="link to the <?php the_title(); ?>"><?php the_title(); ?></a> <?php the_content(''); ?> <a href="<?php comments_link('archive.php', TRUE); ?>" title="Comments for <?php the_title()?>"><?php comments_number('0','1','(%)'); ?></a> <?php endwhile; endif; ?>Now, as you understand, the Title, COntent and COmments_number prints on the new line each. How do i make it all aligned in one line?
Except putting it in table, of course.
Thanx in advance.
The topic ‘Fields in one row’ is closed to new replies.