Ready to get started?Download WordPress


[resolved] the_content() in single.post displays no content (2 posts)

  1. anandg
    Posted 7 years ago #

    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.

  2. anandg
    Posted 7 years ago #

    I finally found it out myself.
    I forgot to put the_content() in a loop.
    That's why it didn't show any content.

Topic Closed

This topic has been closed to new replies.

About this Topic