Title: Getting Content to work
Last modified: August 18, 2016

---

# Getting Content to work

 *  [steven04](https://wordpress.org/support/users/steven04/)
 * (@steven04)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/getting-content-to-work/)
 * I had been running b2 for quite a while now. Earlier this week, something happened
   at my hosting service, and my whole page was lost (hardrive malfunction of somesort.)
   After calming down from being pissed at losing months and months of blog posts,
   I decided to install WP. I got everything configured, and the default template
   worked fine, but I was wanting to put everything into the template I had been
   using for my b2 site. I’ve gotten everything to work, except for my content. 
   I have a verry limited knowledge of PHP coding, and I’m figuring that I’m missing
   some tags to get this working. The format looks ok, but the content just doesn’t
   showup. What am I missing to make my posts showup:
    ` <div id="left"> "><?php
   the_date("l | F | j","<h1>","</h1>") ?>  <br> <?php the_content() ?> <br> <center
   ><font size="-1">| Posted by <?php the_author() ?> @ "><?php the_time() ?> | 
   <?php comments_popup_link("Add A Comment", "1 comment", "% comments") ?> | </
   font></center> </div>  My page is [here](http://www.zestynuts.com/steven) Thanks
   for any help!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/getting-content-to-work/#post-34317)
 * Are you calling the_content() inside the post loop? The post loop begins like
   this in the standard index.php.
    <?php if ($posts) { foreach ($posts as $post){
   start_wp(); ?> You must have a post loop for WP to work properly. Ryan
 *  Thread Starter [steven04](https://wordpress.org/support/users/steven04/)
 * (@steven04)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/getting-content-to-work/#post-34348)
 * When I put
    `<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>` 
   into my index.php, i get a “Parse error: parse error in /home/zestynut/public_html/
   steven/index.php on line 95”
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/getting-content-to-work/#post-34350)
 * That’s just the beginning of the loop, you need the rest of it. From the default
   index.php you need to pull everything in between <div id=”content”> and its closing
   </div> into your “left” div. You can tweak things after you pull it in, but you
   need to keep the foreach and its closing else.
 *  Thread Starter [steven04](https://wordpress.org/support/users/steven04/)
 * (@steven04)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/getting-content-to-work/#post-34357)
 * Ahh ok, thank you so much for the help!! I got it working!
    Thanks again! -Steven

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting Content to work’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [steven04](https://wordpress.org/support/users/steven04/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/getting-content-to-work/#post-34357)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
