• 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
    Thanks for any help!

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

    (@steven04)

    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”

    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

    (@steven04)

    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.