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
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
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
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 )