Custom Fields
Re-Envisioned
Support General Metabox 4.15.4 (switch) Reply To: Metabox 4.15.4 (switch)

#11219

Hazmi
Participant

Hi,

i don’t know, how i get 0 in DB with ‘std’ => ‘ ‘, but now it’s really empty.. :/ Nevermind. Back to my last question. Is there a way to have default value for field “datetime”?

There is basic setting for fields ‘std’ .. but how it works? For example i have this:

array(
‘name’ => __( ‘URL’, TEXTDOMAIN ),
‘id’ => $prefix . ‘url’,
‘type’ => ‘text’,
‘std’ => ‘test’
),

If i don’t fill this field and save the post, than this field doesn’t exists in DB. I forgot something?

Is there a way to have ‘std’ setting work with datetime field? If so how?