• Resolved briangerard

    (@briangerard)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • With the help of the Template Hierarchy article, determine what Template is displaying those dates (could be your theme’s index.php). Then edit that Template and get rid of the code that displays the date (usually the_date() or the_time() and then insert the code for the post title. For the post title the WordPress Default theme’s wp-content/themes/default/index.php uses this:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Thread Starter briangerard

    (@briangerard)

    Thank you for the quick response, I’ll give it a shot.

    Thread Starter briangerard

    (@briangerard)

    Thank you very much. Based on that, I was able to find it and replace it.

    briangerard – I haven’t been able to figure it out. Can you please share which file you edited, where you edited, and what you changed? Thanks much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘replace the date’ is closed to new replies.