• Resolved webbbio

    (@webbbio)


    Hi. I have no idea what I am doing or if the following is possible.
    1. I have created a custom post type with acf date field named party_start_date that outputs date YYYY-MM-DD and field named party_start_time that outputs time HH:MM
    2. I go to elementor post templates and add shortcode

    [add-to-calendar-button
      name="POST_TITLE_FIELD_HERE"
      startDate="party_start_date_FIELD_HERE"
      startTime="party_start_time_FIELD_HERE"
      options="'Apple','Google','iCal'"
      buttonStyle="round"
      hideIconButton
      hideBackground
      label="My custom label"
      lightMode="bodyScheme"]

    How or can I put the post title, date and time in the shortcode. I read in docs that if I use startDate=”{sc_start}party_start_date{sc_end}” then it should work but it’s not cuz I am doing probably something wrong. Do I need to use the attributes box also to input there something? Never used the attributes box before, no idea what it’s for.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jens Kuerschner

    (@jekuer)

    Shortcode in Shortcode only works with shortcodes ??.

    So, no – no need to use the attributes box.

    But you might have misconfigured the act Shortcode. It needs to be something like this: {sc_start}acf field=”name”{sc_end}

    Plugin Contributor Jens Kuerschner

    (@jekuer)

    Closing this as it seemed to be resolved.

    Seems to be resolved but solution and sample granted needed.
    Could you please post your code here for letting us learn where to succeed to add dynamically
    Post Title field > name
    Post ACF date field > Start Date
    Post ACF filed > Description

    Thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.