Skip Navigation

[Waiting for user confirmation] Connect users to posts?

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 3 replies, has 1 voice.

Last updated by Minesh 5 days, 22 hours ago.

Assisted by: Minesh.

Author
Posts
#2787542

a.R

Hi 🙂

How establish a M2M relationship between users and posts?

#2787567

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

There is no such feature available. You can build post-relationship using native and custom post types only.

#2788282

a.R

So maybe save post IDs in users and vice versa and then filter posts und users by ids?

#2788477

Minesh
Supporter

Languages: English (English )

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

Please check the followin Doc that might help you:
- https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/

Another workaround would be you should create a custom post type for instance "Registered Users" and make sure when user registers you should add one entry to "Registered User" post type as well. So if you have 5 users there should be 5 entry available with "Registered User" post type and then you can build the post relationship with your other custom post type and "Registered User" post type.

Pleaes check the followin related tickets:
- https://toolset.com/forums/topic/create-custom-post-when-new-user-register/
-