date and time on the same line
-
hello there, have a look here please…
even with no css styles at all if i have the the code:
<div class="post" id="post-<?php the_ID(); ?>"> <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?><?php the_date('','<h2>','</h2>'); ?></a></h3>
the date only goes after the story title – not on the same line. so if i put the date and time – which i take it is the code inclusnd the <?php ?> brackets:
<?php the_date('','<h2>','</h2>'); ?>
before the h3 tag, in the link or after the < a > link it gos on a new line.
i don’t understand how there is any formatting on there (the date became blue when placed within the < a > tag which makes sense, but from where is it getting the idea to start a new line? and also where does the default formatting come from?
i have a fair idea of css and html bu perhaps im missing something in using the php here.. please have a look and see if you can help. thanks very much.
venk.
- The topic ‘date and time on the same line’ is closed to new replies.