Skip Navigation

[Resolved] Create a custom post and purchase N number of users who can access it

This support ticket is created 4 years, 9 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1293009

Tell us what you are trying to do?
I have a process that I'm currently handling with manual post creations and csv imports and it's not scaling well. I would like to set up a form or series of forms that does the following:

1) Create a new Game post of post upon submit [custom post type: game] with several custom field inputs
2) Add one or more Team(s) (custom post type: team) that have the [game] post created in step 1 as the parent post, each team has several custom field inputs
3) For each Team created in step 2, add N number of players that would create User assigned to their respective [team] post

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/
This post talks about selling this functionality, which I'm good with, but it's not necessary and only really handles one part of what I need.

Is there a similar example that we can see?
Not that I could find.

What is the link to your site?
https:playprelude.com

#1293255

Hello,

I think the key problem of this thread is in step 3) you mentioned above.

One WordPress post can connect to only one user by post author relationship, so in your case, I suggest you try these:
1) Create a post type "players", setup one-to-many relationship between post types "Team" and "players"
2) Setup each "players" post's author as different WordPress user, one user can have only one "players" post, then you will be setup anther kind of relationship between team post and "players" users by the intermediate post type.

More help:
How to Create Custom Searches and Relationships for Users
https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.