Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created Oct 19, 2014
Embed
What would you like to do?
Echo and Decode HTML in a Meta value of WordPress
<?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