1 Answer
1

$post should be a post ID (so $post->ID if you've got the global $post object in scope)

the function call parameters are:

$id: the id of the post (integer)$keyname: a string containing the name of the custom field$single: boolean - true means return a string for the first value, false means an array of all values for the key

what do you mean? Edit your question, and post more of the code that doesn't seem to work. the function you're using needs a post id, not a post. So, have you tried putting in a postID that you know exists, eg get_post_meta(10,'yourcustomfieldname',true'
–
anuNov 20 '10 at 12:49

I have tried putting a postID i know exist. That worked. But when I put $post->ID there, it doesn´t.
–
user1635Nov 22 '10 at 17:43

strange - I've added an alternative way of querying the customfield you want
–
anuNov 23 '10 at 9:55