[Plugin: Custom Field Template] PHP Code $value not showing in text boxes
-
First and foremost, this is a FANTASTIC plug-in! I can’t even begin to say how much time it saves me, and am going to donate to it’s developer again!
I have a Custom Post Type called “Downloads” for which I’m intending to allow the client to add files which can then be downloaded on the website with hit tracking. (I know I could just use one of the many “download manager” plugins available, but I’m trying this first.)
One of the “Custom Field Template” fields I have set up for this Post Type is called “Download_Size”, where WordPress will get the bytesize of the added file (via PHP) and display it in a read-only text box. I have this field set up as follows:
[Download_Size] hideKey = true type = text size = 32 label = File Size code = 0I’m able to echo out the resulting string from PHP, so I know it’s working – However, anything I set to $value does not go into the text box. (e.g. $value = ‘Yes we can’; does NOT put Yes we can into the text box.)
Am I assigning my string from PHP to the wrong variable, or is this just broken for the time being?
The topic ‘[Plugin: Custom Field Template] PHP Code $value not showing in text boxes’ is closed to new replies.