Sauter la navigation

[Résolu] How to "connect" a post type (listing) with "super user" / member?

This support ticket is created Il y a 4 années et 2 mois. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 3 voix.

Dernière mise à jour par Minesh Il y a 4 années et 2 mois.

Assisté par: Minesh.

Auteur
Publications
#1799141

Tell us what you are trying to do?

We are having a listing directory, where we already filled with information.
We will trying to get "owners" of those listings to create a user for them.
Once they are having a user created, they should be able to edit them listing (so one user is having his own listing).

Is there any documentation that you are following?

https://toolset.com/course/wordpress-membership-sites/
https://toolset.com/lesson-placement/lesson-placements-1729033-1727277/

Is there a similar example that we can see?

What is the link to your site?

lien caché

Our thougths:

Should I create a post type "Super Member, or Member ship"? And the create a relationship - 1:1 and connect this way both custom types?

Regards

#1800319

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Normally what you would do in this scenario is change the post_author to be the user once they have registered.

I don't know what your workflow is, you will likely need some snippet of PHP to achieve this, but once it is done the users have "ownership" of the listing without needing to add post relationships.

#1801103

Hi Nigel

We do the workflow manually. So change the author is done by hand.

I did some work and see, that it is working. Only one thing, how can I do, that my new user role can't create a new post? The role should be able to edit and update his own, but not create a new one.

Regards

#1801299

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

If you have installed and activated the Toolset Access plugin, using the Toolset Access plugin you can control capabilities for your post type for the different roles.

Can you go to: Toolset => Access Control => Post Types tag => Locate your post type and make sure its managed by Access and set the capabilities you desired for your role?