Title: Top posts customisation
Last modified: September 13, 2018

---

# Top posts customisation

 *  Resolved [Matt Lovett](https://wordpress.org/support/users/mdeluk/)
 * (@mdeluk)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/top-posts-customisation/)
 * Hi there
 * Hoping someone can help with this.
 * I am trying to customise this widget so that I can add a line (hr tag) below 
   each post in the list.
 * I read here we can add content after a post: [https://jetpack.com/2016/01/12/hooks-customize-top-posts-pages-widget/](https://jetpack.com/2016/01/12/hooks-customize-top-posts-pages-widget/)
 * However when doing this it adds it before the end of `</li>` tag, causing the
   line to appear not below the whole content but to the side of the image.
 * The `<hr>` tag needs to be inserted after the `</li>` tag – is this possible?
 * Thanks.

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

 *  Thread Starter [Matt Lovett](https://wordpress.org/support/users/mdeluk/)
 * (@mdeluk)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/top-posts-customisation/#post-10685317)
 * Just to follow up on this, the actual code I am using for this is:
 *     ```
       function jetpackme_add_date_top_posts( $post_id ) {
               $post_date = get_post_time(
                       get_option( 'date_format' ),
                       true,
                       $post_id,
                       true
               );
               printf( '<hr>', $post_date );
       }
       add_action( 'jetpack_widget_top_posts_after_post', 'jetpackme_add_date_top_posts' );
       ```
   
 *  [MadHatter (a11n)](https://wordpress.org/support/users/madhattersez/)
 * (@madhattersez)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/top-posts-customisation/#post-10696837)
 * Hello there, Matt!
 * Custom code or any design-related items are definitely outside the scope of our
   support – The best options for help on that would be your web host or to hire
   a developer / designer.
 * The only official information we can give are the hooks and filters mentioned
   here and in the articles that are linked, one of them, that you have found:
 * [https://jetpack.com/support/extra-sidebar-widgets/top-posts-pages-widget](https://jetpack.com/support/extra-sidebar-widgets/top-posts-pages-widget)
 * So, I wouldn’t be able to help you with that directly, but I hope this points
   you in the right direction!

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

The topic ‘Top posts customisation’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [top posts](https://wordpress.org/support/topic-tag/top-posts/)

 * 2 replies
 * 2 participants
 * Last reply from: [MadHatter (a11n)](https://wordpress.org/support/users/madhattersez/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/top-posts-customisation/#post-10696837)
 * Status: resolved