So now I am able to loop through the brand distributor of the eyewear collection as well as display it as a short code.. this is perfect.. but now the reason I was looping and not displaying using the short code is because I have multiple brand distributors in the relationship.. one brand can have multiple brand distributors.. so when an eyewear collection is looking for a grand parent, I expected to display multiple grand parents.. but I am able to see just one even when I loop.
Here's the link to the Eyewear Collection Profile Page hidden link
this displays on the left side the short code views as well as the loop views and is self-explanatory
Why does it not display multiple brand distributors when I am looping? In the previous ticket I was asked to remove this code
[wpv-item index=other]
Please do advise how I can display the two brand distributors that are connected to the brand.. Here's the screenshot of the relationship
Hi, may I log in and see how the View and filters are set up? The screenshot here isn't working and the login credentials in previous tickets are removed for your security when a ticket is resolved. I think it will be fastest for me to see things in wp-admin.
I'm looking at the View now, and I can see that it has a Post Relationship Query Filter set up as shown in the screenshot here. You can see the filter is set with the configuration "Select items in the Brand Distributors To Eyewear Brands relationship as related items of the post where this View is shown". However, the View is not shown on a Brand Distributors post. Instead, it is shown in an Eyewear Collection post, so the context is not quite right. You must edit this View: hidden link
Change the Query Filter for post relationships. It should be reconfigured to respond to a shortcode attribute like wpvrelatedto. Then you must pass in the related Eyewear Brand post ID using a nested wpv-post-id shortcode. Since there can be only one Eyewear Brand related to the current Eyewear Collection, the correct syntax looks like this:
Please adjust the Query Filter in the View, then update the shortcode used to display the View as shown here, and let me know if you do not see both related Brand Distributors appear in the results of the View.
Christian is currently on vacation at the moment so I will be handling this ticket here.
I noticed that i'm not able to properly test this because any changes made to this template here hidden link
Is not being reflected on the frontend because the frontend link is being redirected to this link below. hidden link
As you can see both website url's are different so I will need to do the checks on the live site unless you can set the fourplusmedia.com site to not redirect the frontend to youandeyemag.com
Can you please transfer this ticket to Luo? He knows the history of this ticket and it would be easier for him to follow my requirement .. also he happens to be in a similar timezone as me so it would be really quicker.
Luo will be on vacation for the entire next week, so I hope that's ok with you if I follow-up on this ticket.
I've reviewed your view "Related Brand Distributor Eyewear Collection Brand Distributor ID" ( ID: 46733 ) and noticed that it needed the following adjustments.
1. In the content selection settings "Eyewear Brands" post type was selected, when the objective of this view is to show "Brand Owners".
2. In the query filter section, the relationship "Eyewear Brands To Eyewear Collections" was selected, when the correct relationship, in this case, would be "Brand Distributors To Eyewear Brands".
3. In the loop editor section, the fields were set to show with the "item" attribute setting the scope to parent, when it is not needed as the loop is directly of the "Brand Owners" posts.
Now if you'll check the "Chopard Men’s Eyewear Collection Spring/Summer 2020" post, you'll see information from both distributors, under "Displayed as a result of loop from View".
( ref: hidden link )