I am sorry to disappoint you, but unfortunately, something like this is not possible with the plugin's built-in features.
You could achieve something similar the help of some plugin that has the possibility to use PHP Snippets, and add shortcodes on the page in that way. For example:
1. There's the page (where you want the booking form to be), and when you're creating links that lead to that page, in URL you need to place the ID for the employee (http://somesite/booking?employee=17)
2. On that page (where you want the booking form to be), instead of our shortcode, you'd need to add the shortcode of that plugin which uses PHP Snippet which will generate our shortcode (https://wordpress.org/plugins/insert-php-code-snippet/).
Hello,
I've to insert this shortcode on a singular archive page with the ID of the service from an ACF field.
I've tried with this one but not works:
[ameliabooking category=3 service=[acf field='my_custom_field_id']]
How can I do?
Thanks
Hello Michele
I am sorry to disappoint you, but unfortunately, something like this is not possible with the plugin's built-in features.
You could achieve something similar the help of some plugin that has the possibility to use PHP Snippets, and add shortcodes on the page in that way. For example:
1. There's the page (where you want the booking form to be), and when you're creating links that lead to that page, in URL you need to place the ID for the employee (http://somesite/booking?employee=17)
2. On that page (where you want the booking form to be), instead of our shortcode, you'd need to add the shortcode of that plugin which uses PHP Snippet which will generate our shortcode (https://wordpress.org/plugins/insert-php-code-snippet/).
3. The snippet would look something like this:
I hope that helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Ok, thanks... I've fixed adding a text field on ACF for that specific archive/post type page where is possibile put the whole shortcode (https://www.advancedcustomfields.com/resources/text/).
You're welcome, Michele
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables