Title: Adding some code into archive list
Last modified: August 31, 2016

---

# Adding some code into archive list

 *  Resolved [wkdwlstj](https://wordpress.org/support/users/wkdwlstj/)
 * (@wkdwlstj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/adding-some-code-into-archive-list/)
 * first of all, Thanks for ur kind support!
 * I am trying to add the number of comments on my posts into the title of the post
   in archive list.
 * However
    I tried and failed 🙁 I don’t know what file i have to modified.
 * The code i am trying to add is
    <h2 class=”comments count”> <?php printf( number_format_i18n(
   get_comments_number() )); ?> </h2>
 * I added that into content.php, successfully it;s shown. but archive list…nope..
 * Pleas help. What file do i have to modify?

Viewing 1 replies (of 1 total)

 *  Theme Author [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/adding-some-code-into-archive-list/#post-7186064)
 * Hey,
 * All the content files have two part in it. The first renders it in a singular
   view (like a post or page) and the second part is for archive pages.
 * Try adding it to the part after `<?php } else { ?>`
 * Let me know if that works. 🙂
 * Regards,
    Hardeep

Viewing 1 replies (of 1 total)

The topic ‘Adding some code into archive list’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kichu/1.5.2/screenshot.png)
 * Kichu
 * [Support Threads](https://wordpress.org/support/theme/kichu/)
 * [Active Topics](https://wordpress.org/support/theme/kichu/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kichu/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kichu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/adding-some-code-into-archive-list/#post-7186064)
 * Status: resolved