Skip to content

Instantly share code, notes, and snippets.

@transcendr
Last active August 21, 2018 09:02
Show Gist options
  • Save transcendr/c5ada2705ede1b08bd6c2fe706b75e2f to your computer and use it in GitHub Desktop.
Save transcendr/c5ada2705ede1b08bd6c2fe706b75e2f to your computer and use it in GitHub Desktop.
Snax Plugin List Content Shortcode Fix
//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