• Resolved v2006

    (@v2006)


    How can I move the date under the post headings on
    freestuffheadquarters.com/

    Currently the date is at the end of the post.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • edit the theme files, and move the PHP?

    Looks for something that looks similar to <?php the_date() ?> OR <?php the_time() ?>

    Thread Starter v2006

    (@v2006)

    Thanks alot

    This is the theme template code of home.php

    <div id="contentleft">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    
    		<?php the_content(__('Read more'));?><div style="clear:both;"></div>
    
    		<div class="postmeta">
    			<p><?php the_time('F j, Y'); ?> | Filed Under <?php the_category(', ') ?>&nbsp;<?php edit_post_link('(Edit)', '', ''); ?></p>
    		</div>
    
    		<!--
    		<?php trackback_rdf(); ?>
    		-->
    
    		<?php endwhile; else: ?>
    
    		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    		<p><?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?></p>
    
    	</div>

    Where should I move “php the time” to be under the post headings?

    <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    
    		<?php the_content(__('Read more'));?><div style="clear:both;"></div>

    Between these two lines. Between php the_title and php the_content. So it would end up looking like:

    <div id="contentleft">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <div class="postmeta">
    			<p><?php the_time('F j, Y'); ?> | Filed Under <?php the_category(', ') ?>&nbsp;<?php edit_post_link('(Edit)', '', ''); ?></p>
    		</div>
    		<?php the_content(__('Read more'));?><div style="clear:both;"></div>
    
    		<!--
    		<?php trackback_rdf(); ?>
    		-->
    
    		<?php endwhile; else: ?>
    
    		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    		<p><?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?></p>
    
    	</div>

    But always make a backup copy of your files before messing with them, just in case

    Thread Starter v2006

    (@v2006)

    Worked! – thanks very much for your help

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

The topic ‘Place date under post headings’ is closed to new replies.