Skip Navigation

[Resolved] How to automatically fill Custom Post Type with user information from WordPress

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by matthiasV-2 4 years ago.

Author
Posts
#1934941

Hi,

I need to know how I can link a registered user with a Custom Post Type. I.e:

- I have users registering over the normal process in WordPress.
- Each user is a Post in a Custom Post Type called "Registraties".
- I have created Custom User Fields called "Groep voor Registraties".
- I have used a separate User Form for once the user has registered on the site they can edit their profile.
- I have created a post relationship called "Registraties Voorkeuren" so that a user can submit his preferences (using a Post Form) and select himself as a user.

How can the Custom Post Type "Registraties" automatically be filled with the user information from WordPress upon registration?

#1935167

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

This is something we plan to work on in one of the upcoming developer cycles, automatically syncing between user fields and fields on a linked "profile" post, but there is no such facility at the moment.

I suggest you read this document about the recommended way of connecting users to "profile" posts which can be used to store data about the user, i.e. the recommendation is to register a user and then have them complete a form which creates a profile POST rather than extensively using user fields.

https://toolset.com/documentation/legacy-features/views-plugin/how-to-create-custom-searches-and-relationships-for-users/

(There will be an updated version of the post soon recreated using Blocks, but the principle should be clear.)

#1935217

My issue is resolved now.