Home › Forums › Back End › Echo values for custom fields with the same ‘key’ value › Re: Echo values for custom fields with the same ‘key’ value
January 7, 2011 at 10:10 pm
#67167
gno
Member
I have not worked alot with wordpress – at all. So I might be completely wrong…
But if it was just plain PHP, I’d say that you miss some kind of loop. A while or foreach loop would do the job.
You only make one call to the get_post_meta function. I could imagine that there would be a function named get_post_meta_all, or something like it, that returned an array with all the values from the custom field of your choice…
I hope you’ll figure something out :-)