Skip Navigation

[Resolved] Page View not displaying Custom Post Types

This support ticket is created 6 years, 9 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.

This topic contains 7 replies, has 3 voices.

Last updated by gabrielD-4 6 years, 9 months ago.

Assisted by: Ricardo Alday.

Author
Posts
#661342
Capture.JPG

I am trying to: Display my custom post types "Hiking Blog Posts" in a View on a Page to display these posts.

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

I expected to see: my Hiking Blog Posts listed using the View I created for them in the Camino Page.

Instead, I got: no posts being displayed and the Layout edit tool shows no items found.

#664438

I do not see the string "No Items found", which means that View is most likely either not inserted, not inserted properly, or broken.

If a View has a properly setup Loop and Query, it will in any case display either the posts or the string "No Items found".

Please try this:
- since you use the Beta Views, make sure to use all other Toolset Plugins in their latest beta version as well
- Create a new View
- Check the Post Type you want to query (make sure you have some posts in that type)
- Add something to output to the Views Loop
- Save this View
- Insert it into a new Page (or Layout that styles a page).

This will produce a list of Posts.

If not, please send us a copy of that site.

#675421

Hi,

I'm taking over this ticket, hope you don't mind. I downloaded your Duplicator packed and installed a copy of your site on my test server.
I noticed a couple issues:
1. The "Daily Hike Post Page" page had no View inserted into the content. This by itself would be the most obvious problem.
2. All Hiking Posts were set to Draft mode, on the front end this will results in "No posts found".

So what I did was I published on the Hiking Blog posts and inserted the view into the Daily Hike Post Page". That fixed the issue on my end.

Can you try in on your site and let me know if it works? Don't forget to clear your cache when you make these changes.

Best regards,
Ricardo

#675442

Thanks for the response. I have updated a few custom posts to published now and my page did have the view inserted, so I am not sure why the duplicator site did not. I am still seeing the page display "No items found" even with published custom post types. Can we do a live call?

#675444

Also, I did switch domain names for the site today in case that could impact anything.

#675735

I don't think the domain change would have any impact on this.
That said, we don't do phone calls so if you don't mind giving me access to your WordPress dashboard to take a better look at the problem that will help a lot.

I'll enable the private fields below.

Thanks.

#675841

Thanks. In the Ordering section of your View, there are two items for "Fields - Start". I guess you selected one that was not being used in the post type itself. I selected the other one and now it works.

Can you confirm?

Thanks,
Ricardo

#676053

Yes, I can confirm the issue is now resolved and my custom post types are displaying. Thank you so much!! I appreciate your help.