Last active
August 21, 2018 09:02
-
-
Save transcendr/c5ada2705ede1b08bd6c2fe706b75e2f to your computer and use it in GitHub Desktop.
Snax Plugin List Content Shortcode Fix
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
//Located at: /includes/posts/template.php (line 33) | |
/** | |
* Return snax content | |
* | |
* @return string | |
*/ | |
function snax_content_shortcode() { | |
$content = ''; | |
if ( snax_is_format() ) { | |
ob_start(); | |
snax_get_template_part( 'posts/content', snax_get_format() ); | |
$content = ob_get_clean(); | |
//ADD: Run do_shortcode on content... | |
$content = do_shortcode($content, false); | |
} | |
return apply_filters( 'snax_content_shortcode_output', $content ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment