[wp-hackers] Accessing custom fields in a post

Andrew Nacin wp at andrewnacin.com
Tue Mar 30 12:35:48 UTC 2010


You could just use get_post_meta() there, instead of creating a wrapper
function. You also don't seem to implement the second argument even though
you use it, but that's easy enough -- either echo get_post_meta(), or don't.

You may also want to look into the get_post_custom_* functions:
http://codex.wordpress.org/Custom_Fields.


More information about the wp-hackers mailing list