Title: Related posts sidebar widget
Last modified: August 22, 2016

---

# Related posts sidebar widget

 *  Resolved [stesvis](https://wordpress.org/support/users/stesvis/)
 * (@stesvis)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/)
 * I love how the related posts can be customized with actions and filters (like
   showing related posts at the top, or changing how many related posts to show).
 * But what is missing in my opinion…is a sidebar widget to show them in the sidebar
   as well.
 * I have to use YARPP for that purpose, but it eats a lot of CPU and I would rather
   have a JetPack widget!
 * Please..!!
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651372)
 * You’d have 2 ways to go around this:
    - You could use the `[jetpack-related-posts]` shortcode to display Related Posts
      in a text widget ([reference](http://jetpack.me/support/related-posts/customize-related-posts/#shortcode)).
      Shortcodes are disabled in widgets by default, but you can enable them by 
      adding the following to your theme’s functions.php:
       `add_filter('widget_text','
      do_shortcode');`
    - You can use the `Jetpack_RelatedPosts_Raw` raw object to call Related Posts
      anywhere you want in your theme. You can learn more about it by looking at
      the code [here](https://github.com/Automattic/jetpack/blob/3.3/modules/related-posts/jetpack-related-posts.php#L1076),
      or by checking [this video](http://wordpress.tv/2014/10/16/xiao-yu-jetpack-related-posts-for-power-users/)(
      discussion about the raw object start at 30:32)
 * I hope this helps.
 *  Thread Starter [stesvis](https://wordpress.org/support/users/stesvis/)
 * (@stesvis)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651393)
 * Thank you for your answer.
    I implemented solution 1. How come would it not work?
    - I created functions.php in my child theme (didn’t have one)
    - Added `add_filter('widget_text', 'do_shortcode');`
    - Added a text widget like you said
 * And still nothing shows. I am sure it’s just my specific case, but what could
   be wrong?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651408)
 * The shortcode will only work in a loop, so you’d have to add a loop around your
   sidebar elements. You can read more about multiple loops here:
    [http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1](http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1)
 *  [Colin Munro](https://wordpress.org/support/users/elloraboy/)
 * (@elloraboy)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651554)
 * Yeah but they really should make this easier.
 *  [nathaniel-the-greatest](https://wordpress.org/support/users/nathaniel-the-greatest/)
 * (@nathaniel-the-greatest)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651555)
 * So basically you’re saying that it can’t be done, that we can’t put the Jetpack
   related post widget in the sidebar?
 * Why couldn’t you just tell us that in the first place? Or better yet, add this
   feature?
 * I don’t know about anyone else, but I would much rather have this feature in 
   the sidebar, and not at the end of the post. More people will see it there.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [10 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651556)
 * [@nathaniel](https://wordpress.org/support/users/nathaniel/) It can be done through
   one of the 2 methods I outlined above, but you’ll need to make changes in your
   theme.
 * If you don’t feel comfortable doing so, I’d suggest contacting your theme author
   for help, or hiring a WordPress professional via this job board:
    [http://jobs.wordpress.net/](http://jobs.wordpress.net/)

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

 The topic ‘Related posts sidebar widget’ 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/)

 * 6 replies
 * 4 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/related-posts-sidebar-widget/#post-5651556)
 * Status: resolved