Need help with some php code for Gig Press plugin.

I want this page: https://h*avy***.com.au/gig-*****de-vic*****ria/ to list only shows in each of these Australian states: Melbourne, Carlton, Rye, Leichhardt, Dandenong, South Geelong, Geelong, Albury, Collingwood, Moorroolbark, Thornbury.

  • Nithin Ramdas
    • Support Wizard

    Hi Carl,

    I have added the following code inside your child themes functions.php file:

    https://pastebin.com/0hLCvVY4

    Which creates a new shortcode called:

    [wpmudev_gigpress_shows]

    The shortcode can be added in your page like:

    [wpmudev_gigpress_shows scope=upcoming show_menu=monthly city="Melbourne, Carlton, Rye, Leichhardt, Dandenong, South Geelong, Geelong, Albury, Collingwood, Moorroolbark, Thornbury"]

    Other attributes which you could use in the above custom shortcode would be citylike, state, statelike.

    I have created a test page in your site where this is working, you can access that via:

    yourDomainURL.com/test/

    Please do note GigPress is a 3rd party plugin, and what we could check regarding its workflow is limited. For any further queries regarding the plugin you can check with the plugins support forum too:

    https://wordpress.org/support/plugin/gigpress/

    Please do check the added custom shortcode, and let us know if you have any further query. Have a nice day ahead. :slight_smile:

    Kind Regards,

    Nithin