Get Custom Fields into PHP
-
I need to get a custom field into PHP as part of an event-list page so I can interrogate it in an if/then.
I can display it using #_ATT{Race} but getting it into a PHP variable is eluding me.
I thought it should be get_post_meta($EM_Event->output, “Race”, true) but this does not work.
What am I doing wrong?
- The topic ‘Get Custom Fields into PHP’ is closed to new replies.