Appointments+ Overview of services and their price

Hi everyone,

hope everyone is having a great day.

I have a question regarding this view:

I would love to make a page template that includes a list of all services, including their duration and price. A bit the same as on the settings page on the services tab.

The idea is to make a loop and dynamically build a table out of it, or using Bootstrap rows of course.

Can this be done?

Thanks,

Michael

  • Ash
    • WordPress Hacker

    Hi Michael

    Please try the code from here: https://gist.github.com/bappi-d-great/120d30b614f41fca6648b774dcf81ed1

    The shortcode is app_services_fp and attributes are name, capacity, duration, price, provider, desc and desc_length.

    You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you use mu-plugins then add a php start tag at the beginning of the code.

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.