Support » Fixing WordPress » Date won’t display on same-day posts

Viewing 1 replies (of 1 total)
  • I got it now. I R<sup>2</sup> it with this code:

    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post">
    				<div class="post_cal">
    					<?php
    						$postraw = the_date('D, j, M, y', '', '', FALSE);
    						if ($postraw != '') {
    							$postdate = explode(', ', $postraw);
    						} ?>
    					<div class="dayname"><?php echo $postdate[0]; ?></div>
    					<div class="daynum"><?php echo $postdate[1]; ?></div>
    						<div class="month"><?php echo $postdate[2]; ?> '<?php echo $postdate[3]; ?></div>
    						<div class="year">
Viewing 1 replies (of 1 total)
  • The topic ‘Date won’t display on same-day posts’ is closed to new replies.