The website I am working on is a single internet site serving a church with that has multiple physical locations we call campuses. There are 5 campuses all at different locations. I am trying to use a PHP program that will run as a widget and select a specific post defined as a location for a specific campus in order to be able to pull the various custom fields from the tabler based on the name of the campus, whih itself is a custom field. The problem is I don't know how to reference these custom fields in a native PHP environment.
You could PHP mysql functions to query the database directly:
SELECT meta_value FROM wp_postmeta WHERE post_id = 1 AND meta_key = 'wpcf-custom-field-name'
Please let me know if you are satisfied with my reply and any other questions you may have.
Regards,
Caridad
Thank you. This opened up a whole new understanding of the custom fields processing with in WordPress and enabled me to use this understanding in a couple of widgets I was writing.