Custom_field does not insert any value
-
I’ve used custom_field to set the value of a hidden field, but all that gets written into the html is the text ‘custom_field-foo’, or whatever was set as the default value.
From the description of how custom_fields work, all I need to do for a custom field called ‘foo’ is to enter ‘custom_field-foo’ as the default value when setting up my hidden field.
This provides a shortcode [hidden Field_h1 “custom_field-foo”], which in turn generates the following html:
<input type="hidden" name="Field_h1" value="custom_field-foo" class="wpcf7-hidden">This is clearly not what it says on the tin.
If my custon field has a value of 25, then the html SHOUld be:
<input type="hidden" name="Field_h1" value="25" class="wpcf7-hidden">So, is it me, or the plugin not working correctly?
Thanks in advance
The topic ‘Custom_field does not insert any value’ is closed to new replies.