[Resolved] get custom field in admin
How to I get the value of a custom field in the admin?
I have created a custom post type that will hold images
I have created a custom image field for the custom post type
I would like to show this image in the post list for the custom post type (i.e. on edit.php)
When I try to call types_render_field on an admin display page to show the image I get:
Fatal error: Call to undefined function types_render_field() in…
Is there any way to get the values for the custom fields in the admin area?
I’ve tried get_posts to get attachments and setting “meta_key” to the key that is stored in the database “wpcf-custom-image” and I’ve tried it without the “wpcf-” prefix, neither return anything.
What am I missing, or is it impossible to do this?
- The topic ‘[Resolved] get custom field in admin’ is closed to new replies.