Need help with this code

Discussion in 'Programming' started by smdmarketingco, Apr 21, 2009.

  1. #1
    I need help with some coding.

    Here is the code that is not producing a post or thumbnails.

    Can someone please look it over and tell me what is wrong with it please.


    <div id="contentleft">

    <div class="postarea">

    <?php include(TEMPLATEPATH."/breadcrumb.php");?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h1><?php the_title(); ?></h1>

    <div class="date">

    <div class="dateleft">
    <p><span class="time"><?php the_time('F j, Y'); ?></span> by <?php the_author_posts_link(); ?> &nbsp;<?php edit_post_link('(Edit)', '', ''); ?> <br /> Filed under <?php the_category(', ') ?></p>
    </div>

    <div class="dateright">
    <p><span class="icomment"><a href="<?php the_permalink(); ?>#respond"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></a></span></p>
    </div>

    </div>

    <div style="clear:both;"></div>

    <?php the_content(__('Read more'));?><div style="clear:both;"></div>

    <div class="postmeta">
    <p><span class="tags">Tags: <?php the_tags('') ?></span></p>
    </div>

    <!--
    <?php trackback_rdf(); ?>
    -->

    <?php endwhile; else: ?>

    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>

    </div>
     
    smdmarketingco, Apr 21, 2009 IP
  2. sliver

    sliver Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    have you missed get_header and get_footer calls?
     
    sliver, Apr 21, 2009 IP
  3. yoes_san

    yoes_san Peon

    Messages:
    443
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    is your have_posts() function works?
     
    yoes_san, Apr 21, 2009 IP