Support » Plugin: Date & Time Picker for Advanced Custom Fields » Insert a date as a Custom Field in the shortcode

  • Hello, I would like to insert the date/time in this shorcode

    [schedule from=”2018-08-10T15:00″ to=”2018-09-22T10:25″] [acf field=”formulario”] [/schedule]

    I created a custom field with your pluging call fecha_cierre.

    I am using this shorcode but is not working, Could you help me

    [schedule from=”2018-08-10T15:00″ to=”[acf field=”fecha_cierre”]”] [acf field=”formulario”] [/schedule]

    Gracias
    Juan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bartosz Romanowski

    (@toszcze)

    Hi Juan,

    I’m afraid this is not possible, because in WordPress shortcodes don’t accept other shortcodes as parameters. You can have nested shortcodes (like you did with your “formulario” field), but you can’t use a shortcode in other shortcode’s parameter.

    OK, thanks a lot I was going fool.

    And thanks so much for your quick answer

    Thanks a lot
    JUAN

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert a date as a Custom Field in the shortcode’ is closed to new replies.