• Resolved Steve McKinney

    (@stemckinney)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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)

    Thread Starter Steve McKinney

    (@stemckinney)

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

    Thanks for the help anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My page content isn’t showing’ is closed to new replies.