Title: Adding Comment Count After Post Date
Last modified: November 19, 2020

---

# Adding Comment Count After Post Date

 *  Resolved [ourintentionalfarm](https://wordpress.org/support/users/ourintentionalfarm/)
 * (@ourintentionalfarm)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-count-after-post-date/)
 * HI! I am trying to add the number of comments after the date of the post. I’ve
   found some threads with codes to add after author but we do not display authors
   on our site. Is there a way to do this using only the custom CSS option? I just
   don’t want to mess my site up messing with PHP. But if I MUST use PHP, instructions
   on where to add it would be helpful, I haven’t seen that specific instruction
   on any of the previous threads I’ve seen.
 * Simone
    -  This topic was modified 5 years, 6 months ago by [ourintentionalfarm](https://wordpress.org/support/users/ourintentionalfarm/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-comment-count-after-post-date%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-count-after-post-date/#post-13690325)
 * There is no way to use CSS alone, comment count has to come from PHP. The right
   file to edit depends on the post format. Additionally, when you edit templates,
   the altered template should be [kept in child theme](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
   or else your edits will be lost during the next theme update. It’s a bit of a
   process to create, but once done, all manner of custom work can be safely kept
   there.
 * Assuming you are only using the standard post format, edit the twentyseventeen
   theme’s template-parts/post/content.php template file. Find the line for the 
   post date: `echo twentyseventeen_time_link();`
    For me it was line 28 but I’ve
   not recently updated this theme, YMMV.
 * Enter a new line right below this and add:
    `echo ' - ', get_comments_number(),'
   comments ';` Save the altered file to your child theme, using the exact same 
   folder structure as the parent.
 * You may do similarly as you wish for other format templates in the same folder.
 *  Thread Starter [ourintentionalfarm](https://wordpress.org/support/users/ourintentionalfarm/)
 * (@ourintentionalfarm)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-count-after-post-date/#post-13699242)
 * Thanks so much! Will give this a try. Appreciate your detailed instructions.
 *  Thread Starter [ourintentionalfarm](https://wordpress.org/support/users/ourintentionalfarm/)
 * (@ourintentionalfarm)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-count-after-post-date/#post-13742182)
 * IT WORKED! Finally some clear instructions for a novice like me. Thank you so
   very much [@bcworkz](https://wordpress.org/support/users/bcworkz/)
    -  This reply was modified 5 years, 6 months ago by [ourintentionalfarm](https://wordpress.org/support/users/ourintentionalfarm/).

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

The topic ‘Adding Comment Count After Post Date’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [ourintentionalfarm](https://wordpress.org/support/users/ourintentionalfarm/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-count-after-post-date/#post-13742182)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
