Question about adding acf date field in shortcode
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.