Buscando...

Foro » Add a meta value from a meta key next to the title

This topic has 2 voices, contains 2 replies, and was last updated by  belly 171 días ago.

Viewing 3 posts - 1 through 3 (of 3 total)
belly

Add a meta value from a meta key next to the title 23/11/2011 at 19:29 #6655

Hello, I’m using the wp carousel which is really great. But i can’t manage to add a meta value from my meta key called “price” by using “get_post_custom_values($key)”. The only thing that shows is “array” instead of the price. Do you know how i can do that ? Because i read the documentation but i didn’t find a way. Thanks in advance !

Reply To: Add a meta value from a meta key next to the title 2/12/2011 at 19:36 #6869

I think you should try with:

$meta_values = get_post_meta($item['ID'], ‘my_field’, true);
belly

Reply To: Add a meta value from a meta key next to the title 3/12/2011 at 16:59 #6898

Thank you for your help. it works !

Viewing 3 posts - 1 through 3 (of 3 total)

This topic has been closed to new replies.