Viewing 5 replies - 1 through 5 (of 5 total)
  • remove this line:
    <div class="entry-date bigdate"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time('d M y'); ?></abbr></div>

    from your home.php file.

    I’m curious if there is a way to replace the dates that appear on the front page, with the title of the post. Any help would be much appreciated.

    briangerard: I want to do the exactly the same thing! That would be great, and it can’t be too hard to do judging from the code jocobsen1 posted. However, being worthless at PHP, help would be appreciated indeed. Is it someone who can help us?

    I should start by saying that I am very new at this. I’ve managed to Frankenstein the coding so that it displays the post title instead of the date. I am sure that there are more elegant, or correct ways to code this. That said, here is what I have:

    <?php while ( have_posts() ) : the_post() ?>
    
    			<div id="post-<?php the_ID() ?>" class="featured <?php sandbox_post_class() ?>">
    				<div class="entry-date bigdate"><abbr class="published" title="<?php the_title('Y-m-d\TH:i:sO') ?>"><?php the_title(); ?></abbr></div>
    				<h2 class="entry-title post-content-title"><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'sandbox'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><span><?php the_title() ?></span></a></h2>
    				<div class="entry-content post-content">
    					<h4><?php the_title() ?></h4>
    					<p><?php the_excerpt(); ?></p>

    I just replaced the part (in home.php) that wanted the date with ‘the_title’ (I saw that was what it was called somewhere else in the code, and left the rest as is. Again, I am sure that there are better ways to make this work, and I am by no means a master of this stuff, but it did work for me. Good luck!

    Thank you very much! It’s problematic that some of the title disappears (due to lack of room), but this is still very helpful!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Autofocus: Turning off dates’ is closed to new replies.