We have CTP Package
It has a nested repeater field "Package Itinerary". For some reason, I can not figure out, the view that is supposed to display the content is displaying the wrong content (it adds extra content). The bug happened after a recent updated.
Hi
The issue is in the "Itinerary Days For Nested Items" view
It has a conditional:
[wpv-conditional if="( '[wpv-found-count]' eq '1' )"] //If the Itinerary Days found is 1
//Show one day
[wpv-conditional if="( '[wpv-found-count]' gte '2' )"] //If the Itinerary Days found 2 or more
//Show all day
When a post have more then one day - content is displayed twice
eg hidden link
Based on your structure i'm assuming you want to display the nested field group that is inside the Itinerary days field group itself.
So if youre displaying the following:
Day 1
-item1
-item2
-item3
If this is correct then how you've set it up is not going to provide this because in order for you to display the items that are related to the current itinerary day then the Itinerary Day Nested view must be placed inside the Itinerary days views inside the <wpv-loop> tags.
Secondly I see your Itinerary Day Nested view is set to display "Itinerary Day" which essentially won't let your view display the items for the itinerary. What needs to be selected is the " Itinerary Item" given that this is what you want to display under each of the Itinerary Dates.
Finally you will need to change the Relationship filter in the Itinerary Day Nested view to "The current post in the loop" so that it can get the related items for the day being displayed.
Based on your setup now I would recommend that you revert your views to displaying the Basics such as the post title of each of the repeating fields so that you can get an idea of what the view is displaying in its simplest form.
Given this you may need to end up remaking this view because i'm finding that its loading "No Items Found" whenever there is a content template being loaded for the post body template. However when the template is added directly to the loop it works. Can you go ahead and remake this entire view as you can now see it is loading the correct relational data.
Given this you may need to end up remaking this view because i'm finding that its loading "No Items Found" whenever there is a content template being loaded for the post body template. However when the template is added directly to the loop it works. Can you go ahead and remake this entire view as you can now see it is loading the correct relational data.
Given this you may need to end up remaking this view because i'm finding that its loading "No Items Found" whenever there is a content template being loaded for the post body template. However when the template is added directly to the loop it works. Can you go ahead and remake this entire view as you can now see it is loading the correct relational data.
Given this you may need to end up remaking this view because i'm finding that its loading "No Items Found" whenever there is a content template being loaded for the post body template. However when the template is added directly to the loop it works. Can you go ahead and remake this entire view as you can now see it is loading the correct relational data.
You removed the day filtering e.g hidden link it needs to be there. That is the source of the issue
I need:
when there is only one day on tour - don't show day filtering
when there is more than one day - day filtering should appear, and work.
Please fix