Making Address field not required

This topic contains 3 replies, has 3 voices, and was last updated by  Guust 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #517521

    Kojo Darden
    Full Member
    Post count: 21

    I have a directory of businesses and am using the default “Address” field for my directory which is required. However, recently I have received a lot of requests for online businesses that do not have an address. With that being said, is there a way to make the “Address” field(s) optional? Just asking because there is no “Is Required” checkbox on there like other fields.

    #517523

    Guust
    Moderator
    Post count: 29970

    You can create a new custom post type for online business and delete the requirement to use addresses for that custom post type.
    All listings in the same custom post type need addresses, or all listings in the same custom post type will not have addresses, but you cannot mix and match in the same custom post type.

    Thanks

    #523547

    Jason
    Buyer
    Post count: 1

    I wish we could make the address optional as well because I have an identical situation.

    Perhaps an “online only” or similar option – especially since more business are shutter their brick and mortar stores.

    #523548

    Guust
    Moderator
    Post count: 29970

    You can have an “online only” CPT:
    1. Install and activate the Custom Post Types addon
    2. Create a new CPT
    3. In the “Show Advanced” options, tick “Disable physical location?” > YES

    So your users can choose to add a listing with or without an address.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket