Title: PHP Help Please  ***human_time_diff***
Last modified: August 20, 2016

---

# PHP Help Please ***human_time_diff***

 *  [Dmitri](https://wordpress.org/support/users/leanlegion/)
 * (@leanlegion)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/php-help-please-human_time_diff/)
 * Can you please help me incorporate this line:
 * `<?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . '
   ago'; ?>`
 * into this(in index.php):
 * `<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[
   entry-author] [entry-published] [entry-edit-link before=" | "]', hybrid_get_textdomain()).'
   </div>' ); ?>`
 * so that the code will replace [entry-published] and display time as “Hours ago”
   etc…
 * Thank you!

The topic ‘PHP Help Please ***human_time_diff***’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Dmitri](https://wordpress.org/support/users/leanlegion/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/php-help-please-human_time_diff/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
