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.

#138518
Alen
Participant

You would use it where you have it now on the first line, the only diff. is the first argument! `$post->ID` to `get_the_ID()`. But if it works now, don’t fix what’s not broken :)