Hi, I'm setting a an experts database with toolset and it's a lot of fun with the huge abillities of Toolset. But before I do it in the absolute wrong way I need an hint is this correct what I'm doing. Forgive me my bad english.
1. I created a custom post type for the experts, where each expert can insert data about her/him.
2. A new expert can register with a standard user form (ultimate member).
3. After a review his account get activated and he can enter his data over a Toolsets form in the new post type
4. Over another menu entry he can edit existing data for himself.
But now I have two questions. How can I prevent that an expert will create more than one entry? Is it the right way first register a wordpress user and keep the experts date in a seperate post type? Later experts have to pay for there entries, therefore on the registration process they shall not allowed to enter data. After the payed the can enter data.
Hello. Thank you for contacting the Toolset support.
What we can do is when user is registered, we can create one entry under the custom post type experts and set the author of this post as the currently registered user.
So, later we can find how many experts posts are available belongs to the currently loggedin user. I'm not sure how you want to track the payment or what will be the exact flow. Do you want to use the Toolset Forms Commerce for payment?
// Insert the post into the database
wp_insert_post( $my_post );
}
Where:
- Replace 9999 with your user form ID
- adjust the code with your original post type and title.