-
-
Save juanfra/e3868f044d5c09ff11f8ccc0502b9f20 to your computer and use it in GitHub Desktop.
Add shortcodes to the excerpt.
This file contains 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 | |
//* Do NOT include the opening php tag | |
// add shortcodes to `get_the_excerpt` for infoboxes. | |
add_filter( 'get_the_excerpt', 'do_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment