Skip Navigation

[Resolved] Split: showing relationship search filter in the archive

This support ticket is created 3 years, 3 months 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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 3 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2211737

Hi toolset team

I am following the videos and designing the archive page for a directory site. I am stuck on a couple of things, I hope you can help:

3. I have set up a one-to-many relationship of providers-programs (post-to-post). In the programs archive pages, I would like ‘providers’ to be one of the search criteria available to users, and to search by provider name (which would be post title) to show the programs linked to the provider. In the search field options I chose ‘Post relationship or repeatable field groups owner’ then selected the only option ‘Posts (in provider link connections)’ but it doesn’t seem to be working – I don’t think I’ve set it up correctly. Do you have any suggestions? Or it might be that I don’t have enough data yet.

I hope this sort of makes sense. Happy to be referred to documentation/videos to follow.

Many thanks, Lisa

#2211797

Hi,

On your website, I couldn't find any relationship defined at WP Admin -> Toolset -> Relationships.

To search by providers, in the search for programs, you can add a new one-to-many relationship, so that the providers post is the parent on the left side and the programs post is the child on the right side.

After that, the option to add a relationship filter search field will work as expected.

regards,
Waqar

#2212581

Hi Waqar

Thank you for checking this and for your advice.

I have created the relationship and then created search field on the archive page but no options appear in the dropdown. Is this because there is only 1 provider so far? Would you mind checking if I have done it correctly? I have made the text red and the background yellow for the provider field on the archive page so you easily see which one it is.

The website is the same staging5 and with the same login credentials.

thanks so much

Lisa

#2215407

Thanks for writing back.

Yes, the relationship "Fitness providers Fitness programs" and the "Fitness providers" field in the archive have been added correctly.

Currently, that field is not showing any option, because there is just one provider post ( 'Rachael Attard' ), which is not connected to any program post. If you'll connect this provider to any program, it will start showing as an option.
( screenshot from the provider post edit screen: hidden link )