Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Trying to add Custom Field data into a PHP function, but isn’t working. Re: Trying to add Custom Field data into a PHP function, but isn’t working.

#138517
Alen
Participant

Also try printing out the data that’s returned to see if anything is in fact being returned. So do something like:

ID, ‘v_url’, true);
print_r($video_ID);

?>

It is possible that `$post` is not defined, try using `get_post_meta( get_the_ID(), ‘v_url’, true);`