Skip Navigation

[Resolved] Error in query output that should show the parent posts.

This support ticket is created 4 years, 1 month 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 3 replies, has 3 voices.

Last updated by a.e.a.m.S 4 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1836251
Schermafbeelding 2020-11-05 om 10.36.14.png
Schermafbeelding 2020-11-05 om 10.52.24.png

Tell us what you are trying to do? I made a page that is showing the parent courses where the visitor can make a choice from ("Opleiding"), then a query filter on "Locatie" and "Maand"
The thing is, it worked in the past, the parent courses where showing nicely, i suspect that maybe an update of one of the Toolset plugins broke it up?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? The link to the testsite with the page: hidden link

You have to login to see it.
I added a screenshot with a debug message, not sure if it is related to the error in question....

#1836759

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I think we'll need access to your site to see the issue and how it is set up, so let me mark your next reply as private so that I can get log-in credentials from you.

You may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#1840859

Hi,

Thank you for sharing the admin access.

During troubleshooting, I noticed that the code for the post-relationship's field in the view's "Search and Pagination" section, was not correct:


<div class="form-group">
  [wpv-control-post-relationship ancestors="training@training-unieke-training.parent" url_param="wpv-relationship-filter"]
<div class="form-group">
	<label>[wpml-string context="wpv-views"]Opleiding[/wpml-string]</label>
	[wpv-control-post-ancestor type="select" default_label="Selecteer een opleiding" ancestor_type="training@training-unieke-training.parent" orderby="date" order="DESC"]
</div>
[/wpv-control-post-relationship]

I've replaced it with the correct code and it is working now:


[wpv-control-post-relationship ancestors="cursus@training-unieke-training.parent" url_param="wpv-relationship-filter"]
<div class="form-group">
	<label for="wpv-relationship-filter">[wpml-string context="wpv-views"]Opleiding[/wpml-string]</label>
	[wpv-control-post-ancestor type="select" default_label="Selecteer een opleiding" ancestor_type="cursus@training-unieke-training.parent"]
</div>
[/wpv-control-post-relationship]

regards,
Waqar

#1843201

My issue is resolved now. Thank you!