Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active April 16, 2019 14:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/87dd094839cbe510032c67d1d6a57f99 to your computer and use it in GitHub Desktop.
Save braddalton/87dd094839cbe510032c67d1d6a57f99 to your computer and use it in GitHub Desktop.
Enable HTML tags in Content Limit on Genesis Archives When Using the Genesis > Content Archives > Display > Entry Content option
// Doesn't work
add_filter( 'get_the_content_limit_allowedtags', 'get_the_content_limit_custom_allowedtags' );
function get_the_content_limit_custom_allowedtags() {
// Add custom tags to this string
return '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>,<p>,<strong>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment