Skip Navigation

[Resolved] waqas please

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by martinP-13 4 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1534221
waq1.png

Hi waqar im now down to the final few bugs to iron out (the biggest is the open ticket) they all seem to be the same issue illstart new ticket for each thogh.

here hidden link
in the top section for owner and handler im tring to add the place of the dog at the corresponding event , i can only get it so it shows al the handlers event place and not just that one event(similar to the open ticket i think )
image shows the issue. thanks

#1538379

any houghts on this waqar, i had another go but same outcone,thx

#1538713

waqar if you are to busy to deal with this could you please unassigned the ticket so i can get some support today as i ned to get this sorted and it been same for a week thanks
martin

#1538751

Hi Martin,

I'm currently working on your tickets and will reply them all today.

Thank you for your patience.

regards,
Waqar

#1538891

Hi Martin,

Thank you for waiting.

I noticed that in your view "view to show person appearance in events single dog page top" ( hidden link ), you're calling another view "view 7" ( hidden link ), to show the current dog's position/place in the corresponding event:


[wpv-view name="view-7" wpvrelatedto="[wpv-post-id]"  role="Owner"]

But this shortcode used here is not correct, because you want to get the related "Dog Appearances" posts with respect to the corresponding event and not the current "Person Appearances" post. Also, you don't need to specify the role here either, because you've already taken care of this in the current view's level ( i.e. "view to show person appearance in events single dog page top" ).

The right shortcode to call this view would be:


[wpv-view name="view-7" wpvrelatedto="[wpv-post-id item='@event-person-appearance.parent']" wpvrelatedtodog="[wpv-attribute name='wpvrelatedto']"]

The "wpvrelatedto" attribute passes on the ID of the event, while the "wpvrelatedtodog" attribute passes on the ID of the current dog.

In the query filter section of the view "view 7", it was set to bring in any posts which are related to the post ID passed on through the "wpvrelatedto" attribute, which isn't what you need in this case either.

Instead, it should be set to bring posts from "Events Dog Appearances", related to the post ID passed on through the "wpvrelatedto" attribute.

Screenshot: hidden link

But this filter will get the half job done, as it will only filter for the events, but not for the current dog. As only one post-relationship filter can be used in a single view, for dog filter, we'll use conditional output check.
( ref: https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/using-shortcodes-in-conditions/ )

At this point, this view will be showing all "Dog Appearances" posts related to the corresponding event, but they'll not be limited to the current dog.

To limit the results of this view to only the current dog, you can wrap the output inside a conditional check, like this:


[wpv-conditional if="( '[wpv-attribute name='wpvrelatedtodog']' eq '[wpv-post-id item='@dog-dog-appearance.parent']' )"] 
[types field='dog-appearance-position'][/types]<br>
[/wpv-conditional]

This means that the inner content will only show when the ID of the dog post passed through the shortcode attribute "wpvrelatedtodog" and the dog post ID related to the current "Dog Appearances" post in the loop are the same.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1539299

brilliant thanks , im not surprised i couldnt get it working , that solution is well outside my pay grade , thank you again , site is so close to being finally done! thanks very very much
martin

#1539863

thnakyou WaqaR , my good friend is called waqas and its a habbit to write his name , like memory muscle!! please forgive me calling you wrong name randomly!