Shortcodes in HTML
Hi,
Is it possible to use shortcodes such as {service_duration} embedded in HTML. I'm trying to display the duration of the service in a <H2> tag. So far the
<?php echo do_shortcode( '{service_duration}' ); ?>
hasn't worked for me.
Is there any other way to retrieve that parameter?
If not possible, what is the function that calls service duration so I can call from the HTML file?
Thanks a lot!
0
Comments
Hello,
Thank you for your message.
Could you specify your request, please? You can add HTML tag directly in Appearance section:
Let us know if it works for you.
Hi,
Thanks for your reply.
My website is about tours. What I need is to show in woocommerc single-product page de time of duration of the tour.
I have achieved this by using woocommers attributes, but I would rather simplify and centralise all data in one plugin. Therefore I would prefer to retrieve de duration time (and other info) from de data stored in bookly.
You can check it in this link (mind you, is under construction)
https://vilatours.cat/producte/1000-anys-vilanova-ca/
So, long story short, is it possible to use shortcodes such as {service_duration} embedded in an HTML custom page to display the duration of the service inside a <H2> tag? Something like this:
Thanks again!
Hello,
Thank you for your message.
Currently, such option is not supported. You can get in touch with our partners who deal with customization requests and ask them for the estimation: https://www.booking-wp-plugin.com/bookly-customization/
Let us know if you have any other questions.
Please sign in to leave a comment.