Hi,
I'm trying to create post reference field, but when I mark that I want it to be repeatable, it creates the relationship and the field gets lost.
Please see the video to better understand: hidden link
Thanks,
Nadav
Hi Nadav,
Thank you for getting in touch.
I managed to watch your detailed explanation of the issue and this is actually a normal scenario.
It is not a case where the field has disappeared but the field is being replaced by the Many to Many relationship. Given that you want the field to repeat it's actually more efficient to use a relationship to do this.
So now that your posts are in a relationship you will still be able to setup the references to various posts but this time it will be through relationships.
Think of the relationships now as your Repeatable Post Reference field.
I hope I was able to provide a bit more clarity on this one for you.
Thanks,
Shane
Hi Shane,
Thanks for the quick reply.
In that case, how do I add fields from the Tours I've added to the Itinerary (partnership post)?
Also, do you have a recommendation on how to build the template if I don't know how many such steps (tours) I'll have to add to each Itinerary?
Thanks
Hi Nadav,
In that case, how do I add fields from the Tours I've added to the Itinerary (partnership post)?
Are you referring to displaying the fields of the parent/child post in the relationship ?
Let's say you're displaying the Itinerary, you want to display the fields of the Tours on the Itinerary post.
Also, do you have a recommendation on how to build the template if I don't know how many such steps (tours) I'll have to add to each Itinerary?
Are you referring to listing out all the Tours that are on the itinerary ?
Meaning if the Itinerary has 10 tours, you want to display all 10 tours?
Please let me know.
Thanks,
Shane
Hi Shane,
The general question is how to display Tour fields (e.g. title, taxonomy, image, etc) in the Itinerary template. I've added the tours to the itinerary but don't have the option to select them when adding fields with dynamic data.
Regarding "Also, do you have a recommendation on how to build the template if I don't know how many such steps (tours) I'll have to add to each Itinerary?"
No, I don't want to just list all the Tours as a list, but to place specific Tour's on Specific locations.
I don't have an idea what would be the best way to implement this.
Thanks,
Nadav
Hi Nadav,
Would you mind allowing me to have admin access to the site so that I can refresh myself on your setup ?
No, I don't want to just list all the Tours as a list, but to place specific Tour's on Specific locations.
When you say specific locations are you referring to displaying the Tours on their related Itineraries? For it to be a specific location there must be some relationship between the tour and the location where you want to display it.
I've added the tours to the itinerary but don't have the option to select them when adding fields with dynamic data.
Given that it's now a many to many relationship you will need to make use of a view to display the data for the tour on the itinerary template.
I've enabled the private fields for your next response. Please send me a link to the content template that you're working with.
Thanks,
Shane
Hi Nadav,
As mentioned previously to list the tours related to the current itinerary you will need to create a view to do this. If you check the link below you will see i've setup an example that should already be listing the current tour.
hidden link
What happens is that each page you go on you will see the tour that is related to that itinerary.
For further information on displaying the related posts you can have a look at ou documentation below.
https://toolset.com/course-lesson/many-to-many-post-relationships/#displaying-related-posts
Please let me know if this helps.
Thanks,
Shane
Thanks Shane,
I understand the connection and the need to create a view.
That doesn't fully resolve what I need to do since I need specific tours on different locations on the page (Itinerary template) and not to list all of the connected Tours in one place.
I understand that what I'm asking is not straightforward. If there was a way to set the same view on several positions on the same template and filter specific Tours for each duplicate that might have resolved what I need to do.
If not, I guess I'll have to these Itineraries manually as posts.
My issue is resolved now. Thank you!