• Resolved pblk

    (@pblk)


    Hello,

    I am trying to show the_time(); and date in a template, the_title(); and the_content(); are working fine, however date and time are not showing up.

    <?php
    $catID = 3;
    
    if ($catID) {
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       query_posts("cat=$catID&paged=$paged");
    } ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
            <div class="post">
    
            	<div class="postTitle">
            	<h2><?php the_title(); ?></h2>
            	</div>
    
                 <div class="grid_6 alpha">
                        <div class="postMeta">
                        <p><span><?php the_date(); ?></span> @ <span><?php the_date(); ?></span></p>
                        </div>
                    <div class="postContent">
                    <?php the_time(); ?>
                        <?php the_content(); ?>
    
                    </div>
                </div>
    
                              <div class="clear"></div>
            </div><!-- /post -->
    
    <?php endwhile; endif; ?>
  • The topic ‘the_time(); and the_date(); not showing up withing Loop’ is closed to new replies.