Skip Navigation

[Resolved] I’m trying to connect generic fields to match results in relationship views

This thread is resolved. Here is a description of the problem and solution.

Problem:

Connect posts with many-to-many relationship in frontend.

Solution:

You can follow our document to setup the Many-to-many relationship, and setup custom fields in the intermediator post type:

https://toolset.com/course-lesson/many-to-many-post-relationships/

Then setup the relationship form with above custom fields for user to connect posts.

Relevant Documentation:

https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

This support ticket is created 4 years ago. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by sashaY-2 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#2106935
Schermafbeelding 2021-07-05 om 20.04.10.png

Hi Toolset support!

I'm trying to figure out how to connect the form I made to match the last 3 items in the table row( See the form at the right at hidden link and the last 3 columns of the table)

So basically, I want to put data in the form fields and make them be added to the last 3 columns, however I do want this to go through the many-to-many relationships I've created. So the data shall differ per "Klanten" post type (you can select the front-end version of "Klanten" through the item menu "Klanten overzicht")

I've tried making the same slugs for the generic form fields as I have for the custom fields, but that didn't work.
I've looked up to the PHP Hooks but I just got more confused from that since I couldn't find good examples that match what I want aswell.

Can you please help me?

Thank you in advance.

#2107273

Hello,

Please elaborate the question with more details:
How do you setup the post type relationships? Many-to-many relationship or one-to-many?
How do you setup the form? Relationship form or post form?
If it is many-to-many relationship, you can follow our document to setup the Many-to-many relationship, and setup custom fields in the intermediator post type:
https://toolset.com/course-lesson/many-to-many-post-relationships/

Then setup the relationship form with above custom fields for user to connect posts:
https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

#2107331

Ah thank you a lot Luo Yang! I didn't see the option at first that I can create custom fields at the relationship window.
I've made it work exactly the way I want to.

Just one more problem I'm having is that when I filter at a custom post type, lets say: hidden link (I click on the column ordering for example), it doesn't seem to work correctly and instead shows me empty results. If just this one problem can be helped to be resolved I'll be done with it.

Thank you in advance.

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/one-more-problem-im-having-is-that-when-i-filter-at-a-custom-post-type/

#2107335

I assume the original question of this thread is resolved, according to our support policy, we prefer one ticket one question:
https://toolset.com/toolset-support-policy/
for other new questions, please check the new thread here:
https://toolset.com/forums/topic/one-more-problem-im-having-is-that-when-i-filter-at-a-custom-post-type/

#2107339

My issue is resolved now. Thank you!