Created
November 15, 2017 16:08
-
-
Save dartiss/430a559db4b9f2dfda92245c8452dfb8 to your computer and use it in GitHub Desktop.
Allow Shortcodes in the Feed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'the_content_rss', 'do_shortcode' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add to your theme's
functions.php
and, as the name suggests, this allow shortcodes to be actioned within your RSS feed. Use with caution!