Created
October 19, 2014 10:06
-
-
Save ahmadawais/28e98ee6e3cfd0a51cc0 to your computer and use it in GitHub Desktop.
Echo and Decode HTML in a Meta value of WordPress
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 | |
/* | |
* Normally | |
* $content=get_post_meta($post->ID, 'SMTH_METANAME_VALUE', true); | |
* echo $content | |
**/ | |
echo html_entity_decode($content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment