Skip to content

Instantly share code, notes, and snippets.

@dartiss
Created November 15, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dartiss/430a559db4b9f2dfda92245c8452dfb8 to your computer and use it in GitHub Desktop.
Save dartiss/430a559db4b9f2dfda92245c8452dfb8 to your computer and use it in GitHub Desktop.
Allow Shortcodes in the Feed
<?php
add_filter( 'the_content_rss', 'do_shortcode' );
?>
@dartiss
Copy link
Author

dartiss commented Nov 15, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment