Last active
April 16, 2019 14:27
-
-
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
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
// 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