[Gelöst] Auto Populate 3rd Party Shortcode Value in CRED field Value
This support ticket is created vor 7 Jahre, 12 Monate. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to: Shortcode in shortcode value. Automatically populate a CRED field value with the value of a 3rd party shortcode
These are the related fields in my CRED post form. I use a 3rd party countdown timer that manually generates a very large shortcode including styling. The only thing that changes are start and end dates. I have to manually change the dates for each post, which is labor intensive. I need to parse date values to auto populate.
[cred_field field="countdown-timer" post="deal" value="SKIP THIS - APPLIED BY AN ADMINISTRATOR" urlparam=""]
This is the countdown timer generated shortcode. I need to populate "startDate" with today's date and endDate with CRED deadline field date instead of having to set temporary value="SKIP THIS - APPLIED BY AN ADMINISTRATOR" and then editing the post to change the day values. What form javascript or theme function would I employ to achieve this? Thanks.
Hello. Thank you for contacting the Toolset support.
What if you should try to add custom shortcode that will return the start date and end date values and you should add custom shortcode to value attribute of your CRED field shortcode.
Not sure I understand. All I need to dynamically change in the countdown timer shortcode is two pieces of data. How does this apply when the field "deadline" is the end date and the start date is the post's publish date? Thanks.
This hook allows doing a custom action when post data is saved to database. So you can update the
"countdown-timer" value with your shortcode value.
Also I would like to know where you are using this shortcode: "[circularcountdown]"? I need to understand the flow of your request so that I can guide you in right direction.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.