Skip Navigation

[Resolved] Taxonomy didn't show correct results.

This support ticket is created 6 years, 7 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#909747
chrome_2018-06-07_00-59-18.png

I am trying to: Filter result using taxonomy.

Link to a page where the issue can be seen:
hidden link

I expected to see: Show correct result when "Key Issues" is selected - (try Healthcare Markets).

Instead, I got: It shows result from different Post Type (Post), it didn't show result from CPT (Litigation).
Btw, search for other taxonomy (jurisdiction), custom fields (status, plaintiff) shows the correct result (CPT - Litigation).

-- note --
I'm using views ID 1297 "Global - Litigation" (see screenshots)

#910556

Nigel
Supporter

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

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

Screen Shot 2018-06-07 at 13.33.07.png

Hi there

I visited the page and saw the issue.

I turned on debug mode (in Toolset > Settings > Front-end Content), the results of which you can see in the screenshot.

In the lower part you can see that the query arguments are correctly formed (the post type is "litigation"), but in the upper part the actual SQL query is wrong, the post type is "post".

Something is intervening in creating the query.

I switched from your child theme to twentyseventeen and the problem was resolved.

Your child theme must include some custom code that affects the query, and you'll need to review it. If you can't identify it by eye you will need to comment out blocks of the child theme code at a time and re-test to try and narrow it down that way.

When you have found the offending code if you let me know I may be able to help identify why.