Thanks Big Bagel! This is the code i need!
Thanks to all!
Hi, I tried with the following code, but I have not worked:
add_shortcode(‘hola’, ‘myshortcode’);
function myshortcode()
{return ‘Hola’ . get_post_meta($post->ID, ‘prueba’, true) . ;}
nsathees, i dont write the code directly in the template because i want to put it in the middle of the text on the post content, so i think that using shortcodes [example] is the best way, but i dont know how to make the code.
Thanks for any help you can give me!
Greetings!