Skip Navigation

[Resolved] Post-many-to-many relationship – only post author can be used

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)

This topic contains 5 replies, has 2 voices.

Last updated by marcoU 1 year, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2573635
Group 128.png
screencapture-vg-nsite-it-progetto-p-pannel-2023-03-15-17_11_03.png

HI,

I've created a many-to-many relationship on my site that combines member profiles and projects.

At the moment I did this:

1 - a user creates the member card

2 - a user creates the project

I need to figure out how I can do this:

3 - a user must be able to associate his own member file and that of the others to the created project

Note:

At the moment I managed to insert the report form in the project template

The problem is that anyone can change relationships. I need only the person who creates the post (Post Author) to be able to do this.

How can I do?

#2573681
screencapture-vg-nsite-it-wp-admin-post-php-2023-03-15-18_03_24.png

I also entered the condition I only display if I'm the author but it doesn't work

#2573997

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To check the post author ID is equal to current logged in user ID you should compare the current post's Author ID equal to current user ID.

Please check the following screenshot and adjust your condition accordingtly:
- hidden link

#2574271
Senza titolo.jpg

Ok it works!!

Can I ask you this too?

Is it possible to associate the Post members and the post project also in the insertion form?

It would be nice if the project file was automatically linked to the members post because they have the same author.

Thank you

#2574283

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that the solution I shared help you to resolve your issue.

As per our support policy - we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery. May I kindly ask you to open a new ticket with every new question you may have.

Thank you for understanding.

#2574291

My issue is resolved now. Thank you!