Forums

[resolved] My page content isn't showing (3 posts)

  1. stemckinney
    Member
    Posted 2 years ago #

    I hope this is in the right section.

    Basically I have my theme ready for the most part and it's fine and I have content added into the page I'm talking about (home page). I've made a separate page template for it called main.php and with the relevant information including the template name - this is all fine I know it.

    But what obviously I want to do is have my content show when entered in via the wordpress pages content area.

    This is the code which has worked for me to show it usually:
    <?php the_content('Read the rest of this entry &raquo;'); ?>

    The output is this, nothing is showing where I have pointed out:

    <div class="entry_content">
    <div class="entry"> <!-- content should show here --> </div>
    </div>

    If you would like to see it's http://iamsteve.me and if you look at the source you will see the output above.

    Thanks for your help in advance!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    do you have the rest of the loop?

    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    
    <?php endwhile; endif; ?>

    this business (as a minimal example)

  3. stemckinney
    Member
    Posted 2 years ago #

    I figured the problem out I stupidly copied my code into the visual part, instead of the HTML part.

    Thanks for the help anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic