Magento 2 Address fields on Customer Registration

This post shows you how to add the customer address fields to the customer registration page.

Simply use the setShowAddressFields method to display the address fields on the registration page.

Create file: view/frontend/layout/customer_account_create.xml

<page xmlns:xsi=""
        <referenceBlock name="customer_form_register">
            <action method="setShowAddressFields">
                <argument name="show.address.fields" xsi:type="boolean">true</argument>

See another article about adding a Custom Field to the Billing Address in the checkout.