Main Content on Pages Not Showing - First Time WP coder (3 posts)

  1. dgPehrson
    Posted 3 years ago #

    So this is my first WordPress site that I am coding but I have ran into two problems.

    1) When I created the loop, the content loads up just fine except I cannot get the content to do spaces between the returns. Easy solution around that?

    2) I created a full-width page, the title will show but not the main body. Any solutions to this?

  2. 1) It's hard to say, those posts don't have much content. Where are the returns?

    2) I think that we will need to see the code?

    Can you paste the code you are using to display your page.php in pastebin and provide us with the link?

  3. dgPehrson
    Posted 3 years ago #

    Sure thing. This is for the page.php. I can see the same problem with the return key also but first, I need the main body to show. The title shows and so does the edit button but that's it. You can find the page at http://www.treunorth.com/pennycakes/test-page/

    <?php get_header(); ?>
    <!-- Page Article -->
    <div class="clear"></div> 
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <section id="story" class="container_16 clearfix">
    	<div class="story-top grid_16"></div>
        <div class="story grid_16">
    		<h1 class="meander"><?php the_title(); ?></h1>
    		<p class="m500">
    			<?php the_content(); ?>
    			<?php wp_link_pages(); ?>
            	<?php edit_post_link( __( 'Edit', 'pennycakes' ), '<span class="edit-link">', '</span>' ); ?>
    		</p><!-- .entry-content -->
    	<div class="story-bottom grid_16"></div>
    </article><!-- #post-<?php the_ID(); ?> -->
    <div class="clear"></div>
    <!-- //Page Article -->
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic