Title: Display Shortcodes in Widget
Last modified: April 1, 2020

---

# Display Shortcodes in Widget

 *  Resolved [mattce](https://wordpress.org/support/users/mattce/)
 * (@mattce)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/display-shortcodes-in-widget/)
 * Hi, is there any way of getting shortcodes to work properly inside the post titles?
   We are using a custom shortcode named [yyyy] to replace it with the current year
   automatically, but in the widget output it’s simply showing as [yyyy], not “2020”
   as expected.
 * I’ve already tried to enable shortcodes via
 * `add_filter( 'widget_crp', 'do_shortcode');` (also with a higher priority of 
   11)
 * inside the functions.php, but this is also not working. Do you have any idea 
   how to fix this issue?
 * Thanks a lot!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/display-shortcodes-in-widget/#post-12626955)
 * Could I see a screenshot of what you’re trying to achieve? You might need to 
   use another filter – might be crp_title

Viewing 1 replies (of 1 total)

The topic ‘Display Shortcodes in Widget’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/display-shortcodes-in-widget/#post-12626955)
 * Status: resolved