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

3 comments
Date Votes
  • Official comment

    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:

    <?php echo do_shortcode( '{service_duration}' ); ?> 

    Thanks again!

    0
  • 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. 

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post