Title: Hide post date for single post?
Last modified: August 19, 2016

---

# Hide post date for single post?

 *  Resolved [Paul Whitener Jr.](https://wordpress.org/support/users/pwhitene/)
 * (@pwhitene)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/)
 * I’m looking for a way to hide the post date for particular posts. For example,
   I have a “sticky post” on my index page that I don’t want to display the date
   for. I would like the other posts on the page to show the date.
 * Is there a way to set whether to show/hide the date on a post-by-post basis, 
   _or_ a way to hide the date on sticky posts only?
 * Thanks!

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

 *  [buddha-trance](https://wordpress.org/support/users/buddha-trance/)
 * (@buddha-trance)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/#post-1016795)
 * I just tested this and it worked.
 * On index.php, you will see something like
    `<?php the_time('M jS, Y'); ?>`
 * Just use this, so that when the post is sticky, it won’t display
 *     ```
       <?php if (!is_sticky() ) { ?>
       <?php the_time('M jS, Y'); ?>
       <?php }
       ?>
       ```
   
 *  Thread Starter [Paul Whitener Jr.](https://wordpress.org/support/users/pwhitene/)
 * (@pwhitene)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/#post-1016809)
 * Nice, that worked perfectly. Thanks!
 *  [julie24n24](https://wordpress.org/support/users/julie24n24/)
 * (@julie24n24)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/#post-1017186)
 * Thanks pwhitene, this is exactly what I was looking for. I’ve implemented and
   it works! Thanks a whole bunch.
 * [http://www.citygeisha.com](http://www.citygeisha.com)
 *  [andyyummyfavours](https://wordpress.org/support/users/andyyummyfavours/)
 * (@andyyummyfavours)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/#post-1017194)
 * Great work – it works perfectly on our basic, but modified Kubrick theme.
 * Andy
 *  [Tilman](https://wordpress.org/support/users/archeryimagesnet/)
 * (@archeryimagesnet)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/#post-1017209)
 * Thanks! In my case, I wanted to erase all the things that are published by the
   theme if the post is sticky.
    So I set the if(!is_sticky()) around the <p> tag.
   So
 *     ```
       <p class="timestamp"><?php the_time('j F, Y (H:i)') ?> | <?php the_category(', ') ?> | By: <?php the_author(); ?><?php edit_post_link('[e]',' | ',''); ?></p>
       ```
   
 * became:
 *     ```
       <?php if (!is_sticky() ) { ?>
       <p class="timestamp"><?php the_time('j F, Y (H:i)') ?> | <?php the_category(', ') ?> | By: <?php the_author(); ?><?php edit_post_link('[e]',' | ',''); ?></p>
       <?php } ?>
       ```
   
 * Just for the search engine Visitors.. 😉

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

The topic ‘Hide post date for single post?’ is closed to new replies.

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 5 participants
 * Last reply from: [Tilman](https://wordpress.org/support/users/archeryimagesnet/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/hide-post-date-for-single-post/#post-1017209)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
