Saltar navegación

[Resuelto] Connect users to posts?

This support ticket is created hace 3 semanas, 6 días. 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)

Este tema contiene 3 respuestas, tiene 1 mensaje.

Última actualización por Minesh hace 3 semanas, 1 día.

Asistido por: Minesh.

Autor
Mensajes
#2787542

a.R

Hi 🙂

How establish a M2M relationship between users and posts?

#2787567

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: 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

Idiomas: Inglés (English )

Zona horaria: 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/
-