Title: Shortcode Not Working with Plugin
Last modified: August 14, 2023

---

# Shortcode Not Working with Plugin

 *  Resolved [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * (@mohsin786)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/)
 * Hey,
 * First of all, the plugin is great help to me. I have an issue with the plugin
   for which I don’t know if the plugin is compatible with this feature or not.
 * I have shortcodes in my post titles [current_date format=’F Y’] to show the current
   month and year. The shortcode getting working with the AIOSEO plugin correctly
   as it has the option to execute shortcode but I can not find the same option 
   or relevant one in the Contextual Related Post plugin.
 * So I want to know if it can work or not? If yes, how?

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-16981452)
 * You can add this code in a functional plugin, your theme’s functions.php or via
   a plugin like Code Snippets.
 *     ```wp-block-code
       add_filter( 'crp_title', 'do_shortcode' );
       ```
   
 *  Thread Starter [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * (@mohsin786)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-16984776)
 * It is not working, Shortcode still not executing.
 *  Thread Starter [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * (@mohsin786)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-16984781)
 * Furthermore, I am using the below shortcode plugin to show month & year in a 
   post title.
 * [https://wordpress.org/plugins/shortcode-for-current-date/](https://wordpress.org/plugins/shortcode-for-current-date/)
 * It is executing in post titles but showing as **[current_date format=’F, Y’]**
   in a related posts list.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-16984805)
 * Where did you add the above code?
 *  Thread Starter [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * (@mohsin786)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-16984863)
 * As you said functions.php as a last line.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-16985728)
 * Are you able to test this out with this plugin?
   [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 *  Thread Starter [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * (@mohsin786)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-17029540)
 * Sorry for late reply,
 * Have tried Code Snippets plugin but it didn’t work. Any other solution you have?
 * Thanks
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-17038243)
 * [@mohsin786](https://wordpress.org/support/users/mohsin786/) I’m lost to be honest.
   This should be working as it works in my install so I can’t figure out why it
   isn’t in yours.
 * One last option is to use a php file with that code in mu-plugins which are always
   loaded.
 * Do you have a caching plugin by any chance? And, if you’ve enabled the CRP cache,
   then you’ll need to clear it via the Tools page.
 *  Thread Starter [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * (@mohsin786)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-17055597)
 * The shortcode is now executing after I delete and re-installed the plugin. It
   is strange but works.
 * Thanks for your responses.

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

The topic ‘Shortcode Not Working with Plugin’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Mohsin](https://wordpress.org/support/users/mohsin786/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-with-plugin/#post-17055597)
 * Status: resolved