Waqar is away until Wednesday. I'll be happy to help out, but I see that there is a long history of support, not just from Waqar, and I'll need some background to understand the context of your problem.
Could you summarise the post types and their relationships, and the specific content you are having problems displaying?
i have my single event pages like this hidden link
this page shows my results via views it uses hidden link php with the shortcode <?php echo do_shortcode( '[wpv-view name="view-to-show-all-dogs-related-to-an-event"]' ); ?> on line 109.
i then have my single-judge page hidden link which shows all related evensts to that judge.
i then have my single-dog page hidden link showing all related juddges and dogs etc.
i have single-owner that i want to show all the dogs they own and the events theose dogs where in along with all other relevant items. basically its the same on all pages less the info for the page you are on
so on a single-owner page
i want to show
a) all dogs in a relationship to the owner.
then under each dog i want to display
a the stake of the event
b)all events related to that dog
c)the position it got in that event
c)the judges for that event
d) the sire and dam of the dog
e) the handler of the dog
f) the breeder of the dog
if you view the a above pages that are complete it will make sense,to display this stuff i have a parent and a child view as so
parent hidden link
child hidden link
i will be at my computer all affternoon if you require any more info fro myself nigel,
thankyou
ive been trying to do this for a week now,going around in circles with support , if you cant help can you reassine to some one who can help me complete this today?
I'm just about to finish, so I will ask Shane to help you (you have previously rejected support from Christian who is the other supporter working in the later timezone).
I think I have an idea of what you want to achieve now.
So its Owner -> Events -> Position -> Judges -> Dog -> Handler -> Breeder
This is quite a complex relationship we have here.
However in order to get your desired results your view must be nested in that order and your events must be related in this order.
Thinking about this Many to Many setup is quite extensive but to get your results this is how we should proceed.
Or We have the owners relating to the dogs directly.
Which Would be
Owners page
-> Lists dogs of that owner.
-> Events being a child of CPT of Dogs.
-> Dogs participate in Events
-> Events has positions,
-> Positions belong to Events.
ETC
This is how i'm also looking at it. So a View in this relational order should also give the desired results. Remember that the Parent will determine what the child will display. So its a subsequent nesting of each child view with their immediate parent.
sounds right , but not got a clue ,if i get you ,i need 1 parent any many childs?
i started like this but as you see here it is showing no events and 3 sires(a dg can only have 1 sire(father) hidden link
i must of deleted that dog from the event i had it in by mistake in the confusion!! now it takes shape!!
dog is attached to this event now hidden link.
as you see lots of info now there on the owner page! hidden link
all i need now is the stuff related to the dog.
ie
SIRE :
DAM :
HANDLER :
BREEDER :
once i achieve those 4 fields im done with owners!!
Information is related to your dog, then you will need to create a view for each of this and add it to the view that displays the dog on the owners page.
Once you have done this you will be able to get the relationship information of the Sire, Dam, Handler and Breeder since this information is all related to the dog.
What you need to do now is to create copies of these views that you are using on this page to display the information and add it to the view that is displaying the Dogs on the Owner's page.
Now in the copies you will need to change the filter option on the view "The post where this View is shown" to "The current post in the loop".
thank you Shane hopefully i can catch you before you finish,!!
the dog is displayed on the owner page from this view hidden link
i added [wpv-view name="view to show sire on a single owner page" wpvrelatedto="[wpv-post-id item='@dog-sire.parent']"]
i get no items found.
i made the duplicate to show the sire hidden link
what am i missing?
thank you ever so much i think i'm a heart beet from succesfully accomplishing this!
I realised later on when I did some more investigation on this that the "The current post in the loop" setting wouldn't work for you in this case.
What was actually needed was the "The post with ID set by the shortcode attribute" Now it works fine because we are already printing out the dog information this is correct.
See my screenshot.
Now i've set it to get the id of the dog in the relationship by a shortcode attribute "wpvrelatedto".
Then I inserted this view into your "view to show dog ids for an owner" view. Finally passing the ID of the dog being displayed by this view into the view to display the sire.
[wpv-view name="view-to-show-sire-on-a-single-owner-page" wpvrelatedto='[wpv-post-id item="@owner-dog.child"]']
A quick look on the frontend and it should now be printing the correct sire for this test dog.