• Resolved nadworks

    (@nadworks)


    Thanks for apparently taking care of some of these “virtual events” related issues (i.e. editable countries list and not making city mandatory), however, it’s not clear to us: where the countries list can be edited.
    And how the city field can be switched off.

    Assuming this is via the functions file. So for the less savvy user, can you provide
    a code example for how to add an additional country, please?
    And a code example for how to make the city field optional?

    Sorry if you’ve left instructions somewhere. But if you did, we missed it and the documentation has not been updated since 2016 it seems.

    • This topic was modified 5 years, 3 months ago by nadworks.
    • This topic was modified 5 years, 3 months ago by nadworks.
    • This topic was modified 5 years, 3 months ago by nadworks.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nadworks

    (@nadworks)

    I would REALLY appreciate some help if possible, please.

    Hello @nadworks,

    If you have access to a file explorer for server where your WordPress installation is hosted, please go to the GigPress plugin folder and locate the gigpress.php file.

    If you scroll towards the bottom of the code in the file, you will come across the list of countries which you can edit on your own.

    Just remember that the Country column must be a valid ISO-3166 two-character country code, as shown here: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

    Let me know if this works for you.

    Thread Starter nadworks

    (@nadworks)

    Thanks, @matumu. But I’m aware of that.

    The point was that with the new release, the country list can now be customised via a filter and kept from being overwritten with each Gigpress update. I’m running approx. 30 website using Gigpress and most of these have slightly different requirements re. the country list (i.e. some clients want the UK to always appear as UK, even in its long form, same for the USA. Some clients want Scotland to be listed as a country. Virtual events that have no country association by nature need to be catered for etc.

    So I would like to know how I can hook into the country list via my functions.php to stop it from being wiped out with each GP update. That’s a new feature apparently, but there’s zero instruction on how to implement these new features.

    We’re not all savvy PHP developers. So some help would be much appreciated, please.

    Thread Starter nadworks

    (@nadworks)

    Here’s what I’d love to see an implementation/usage example for:

    = 2.3.25 [2021-02-01] =
    * Tweak – Added gigpress_country_list filter to allow customizing the country list. [GP-12]
    * Tweak – Added gigpress_venue_city_required filter to allow setting the city as a not required field. [GP-13]

    These tweaks are great! But how are they being implemented in practice??

    Plugin Contributor András Guseo

    (@aguseo)

    Hi @nadworks

    I believe I have replied to this question in this thread.

    Also, I have just created a knowledgebase article based on that.
    https://theeventscalendar.com/knowledgebase/k/modifying-the-country-list-in-gigpress/

    I am going to mark this ticket as resolved. If you need anything else please create a new ticket and we’ll be happy to help.

    Cheers,
    Andras

    Thread Starter nadworks

    (@nadworks)

    Many thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Countries list’ is closed to new replies.