HTML - Codigo para insertar una fecha

 
Vista:

Codigo para insertar una fecha

Publicado por murciamiga (1 intervención) el 01/09/2018 11:59:58
Hola a tod@s:

A ver si alguien puede ayudarme.

Tengo este código que viene del pluging Scheduled Content, sirve para ocultar UN FORMULARIO DE CONTACTO de un post al poner una fecha determinada.

[schedule from="2017-08-10T15:00" to="2018-09-2T19:56"] [acf field="formulario"] [/schedule]

Me gustaría,si es posible, que la fecha de HASTA (to) se autocomplete automáticamente, para ello he usado un custom fiel del pluging ACF (add Custom Fiels) en Date and Time Picker donde puedes elegir la fecha y la hora.

Este campo me trae la fecha y la hora y me gustaría añadirla aquí:

[schedule from="2017-08-10T15:00" to="2018-09-2T19:56"] [acf field="formulario"] [/schedule]

POdría usar este valor tal que así?? Cuando el custom fiel id es: "cierre"

[schedule from="2017-08-10T15:00" to="$value = get_field( "cierre" );"] [acf field="formulario"] [/schedule]


Date and Time Picker me da estas opciones para importar la fecha:

Save as timestamp?
Most users should leave this untouched, only set it to "No" if you need a date and time format not supported by strtotime

Get field as timestamp?
Most users should leave this untouched, only set it to "Yes" if you need get the date and time field as a timestamp using the_field() or get_field()



Gracias por vuestra ayuda.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder