• How can i put Title and Content in one line? (see the code)
    <span> is already inline element,
    but just doesn’t work.

    Can someone give me some idea? Thank you.

    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
    <span class="entry"> <?php the_content(); ?> </span>
    </h2>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The code you posted does print Title and Content in one line, however you probably shouldn’t be printing the_content() in a h2 tag.
    I would rather use something like that :

    <h2 class="inline"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    <span class="entry"><?php the_content(); ?></span>
    .inline{
        display:inline;
    }
    Thread Starter blurfun

    (@blurfun)

    Thank you so much.
    But still does not work.

    I think maybe something about PHP,
    it works on pure CSS

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘why inline element doesn't work?’ is closed to new replies.