• Resolved Matt Pusateri

    (@crookdimwit)


    I’ve set up a query for this template for a “story” custom post type.

    Everything is rendering right, except that the date comes up as an empty field.

    Help???

    here’s the loop in question:

    
    <?php 
        query_posts(array( 
            'post_type' => 'story',
            'showposts' => 10 
        ) );  
    ?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <div class="story">
    <h4 class="story-category"><?php the_category(); ?>
    </h4>
    <h2><a href="<?php the_permalink(); ?>"><?php the_title() ;?></a></h2>
    <p class="post-date">DATE: <?php the_date(); ?></p>
    <?php the_content(); ?>
    </div>
    
    <hr class="story-divider">
    <?php endwhile; ?>
    

    The page I need help with: [log in to see the link]

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

The topic ‘Date not showing’ is closed to new replies.