WordPress.org

Support

Support » Themes and Templates » [Resolved] the_content() in single.post displays no content

[Resolved] the_content() in single.post displays no content

  • In single.php I have the code:

    <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>

    But it shows only the title, not the content.
    I just don’t understand why it doesn’t show the content.

Viewing 1 replies (of 1 total)
  • I finally found it out myself.
    I forgot to put the_content() in a loop.
    That’s why it didn’t show any content.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] the_content() in single.post displays no content’ is closed to new replies.
Skip to toolbar