Created
July 10, 2024 13:30
-
-
Save larbous/5ac4a7d314763b503b8c865ed9f82f63 to your computer and use it in GitHub Desktop.
WP JetEngine - Shortcode que imprime um campo com html puro com JS, CSS sem remover as tags html
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 | |
//use para imprimir um campo JetEngine Textarea com somente html | |
function pagina_html_shortcode() { | |
//campo meta | |
$meta_key = '_pagina_html'; | |
//recupera o campo | |
$value = get_post_meta(get_the_ID(), $meta_key, true); | |
return $value; | |
} | |
add_shortcode('pagina_html', 'pagina_html_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment