• sound silly question, maybe too simple, but i can’t manage to do that
    here is my code:

    <div id="post">
      <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php the_date('j F Y'); ?>
    </div>
Viewing 1 replies (of 1 total)
  • just one possible way:

    <div id="post">
      <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a><span> <?php the_date('j F Y'); ?></span></h2>
    </div>

    then add an extra style to style.css to reduce the font size of the date, or to have more formatting options:
    h2.entry-title span { font-size: 70%: }

Viewing 1 replies (of 1 total)
  • The topic ‘how to display post title and date on the same line ?’ is closed to new replies.