Skip Navigation

[Resolved] View not showing any results

This thread is resolved. Here is a description of the problem and solution.

Problem:
View not showing any results when set order by option to different custom field attached to another post type

Solution:
you should set order by option with the field which is attached to your post type otherwise it will break the query and due to that it will not output anything.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/view-not-showing-any-results/#post-900907

Relevant Documentation:

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Marcel 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#900883

I am trying to: make a view

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

I expected to see: the results

Instead, I got: no items found

I made a custom post type with a CRED form for front end submitting. That all works fine, and my listings appear under my custom post type in WP admin. Now I'm trying to load them in a view, but I can't get them to show up there.

#900907

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I just changed the order by field to POST ID and I can see the results.
=> hidden link

Please note that you should set order by option with the field which is attached to your post type otherwise it will break the query and due to that it will not output anything.

#900910

Great, thanks! I thought I selected one of the custom fields of that post type to sort on though...