Created
July 18, 2013 18:44
-
-
Save joshmcrty/6031840 to your computer and use it in GitHub Desktop.
Apply the WordPress content filters to a string of HTML from a custom field within the WordPress loop. The enables oEmbed, wp_texturize, etc.
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 $my_custom_content = get_post_meta( $post->ID, 'my_custom_content_meta_key', true ); ?> | |
<?php if ( '' != $my_custom_content ) : ?> | |
<?php echo apply_filters( 'the_content', html_entity_decode( $my_custom_content ) ) ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it work!