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.
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.
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
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?
Also, I did switch domain names for the site today in case that could impact anything.
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.
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
Yes, I can confirm the issue is now resolved and my custom post types are displaying. Thank you so much!! I appreciate your help.