Add your selected dispensary location(s) to shortcode output

34 seconds

This is a code snippet that utilizes the Dispensary Locations add-on and displays the selected location(s) for each menu item through the included WP Dispensary action hook.

If you have multiple dispensaries or only deliver specific menu items to specific cities, you can utilize this code to display the location name that also links your website visitor to all menu items tagged with that location.

View this gist on GitHub

You can add this quick CSS style to the mylocation class, positioning the name over top of your menu item’s featured image.

View this gist on GitHub

Required: Dispensary Locations add-on

Was this article helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *