• Resolved kevinraskin

    (@kevinraskin)


    Hi,

    we use plugin “Custom User Registration Fields for WooCommerce” to add some custom fields to the user registration page of woocommerce and this works. We see the field with the vbalues in the user screens in the backend.

    Now we want to display the content of these fields via a shortcode in another screen on the frontend and we were trying to use your plugin with the shortcodes but we don’t know where these new fields are added/to which table or structure.

    I tried this: [vg_display_data key=”Aantal_velden” data_source=”users”]

    Aantal_velden is the name of the new field.

    Thx a lot

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Vega

    (@josevega)

    Hi there.

    The shortcode works with user meta fields. If the plugin “Custom User Registration Fields for WooCommerce”?saves those fields as user meta, then it will work fine, but it won’t work if they’re saved in custom tables.

    You need to get the meta key. You can install the free plugin “show user meta” to find the key, go to a user profile in the backend, and you’ll see all the meta values of that profile with the keys.

    Then you can use a shortcode like this (assuming that Aantal_velden is the meta key):
    [vg_display_data key=”Aantal_velden” data_source=”user_meta”]

    • This reply was modified 1 year, 5 months ago by Jose Vega.
Viewing 1 replies (of 1 total)
  • The topic ‘Show custom fields from plugin’ is closed to new replies.