WordPress.org

Ready to get started?Download WordPress

Forums

post date doesnt show up (3 posts)

  1. Waraabe
    Member
    Posted 4 years ago #

    I am new to wordpress. For some reason my post doesn't show the date and year.
    http://www.radiosanaag.net

    please give me some hints or lead.

  2. Waraabe
    Member
    Posted 4 years ago #

    this is the code of my index page.

    <!-- begin featured news -->
    	<div class="featured">
    	<div id="featured">
    		<?php
    		$tmp_query = $wp_query;
    query_posts('cat=1');
    
    		if (have_posts()) :
    		while (have_posts()) : the_post();
    		?>
    		<!-- begin post -->
    		<div class="fpost">
    			<a>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
    			<h3><a>"><?php the_title(); ?></a></h3>
    			<p class="details"></p>
    			<p><?php echo dp_clean($post->post_content, 300); ?></p>
    		</div>
    		<!-- end post -->
    		<?php endwhile; endif; ?>
    	</div>
    	</div>
    	<!-- end featured news -->
    <?php
    	$wp_query = $tmp_query;
             query_posts('cat=1');
    
    	if (have_posts()) :
    	$odd = false;
    	while (have_posts()) : the_post();
    	$odd = !$odd;
    	?>
    
    	<!-- begin post -->
    	<div class="<?php if ($odd) echo 'uneven '; ?>post">
    	<h3><a>"><?php the_title(); ?></a></h3>
    	<a>"></a>
        <?php $screen = get_post_meta($post->ID,'screen', true); ?>
    
    	<p><?php echo dp_clean($post->post_content, 150); ?></p>
    	<div class="postmeta">
    	</div>
        </div>
    	<!-- end post -->
  3. esmi
    Forum Moderator
    Posted 4 years ago #

    Try adding <?php the_date(); ?> to the post templates where you want to display posting dates.

    http://codex.wordpress.org/Template_Tags/the_date

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.