I am trying to: show the "press reviews" dedicated to a theatrical show in the page of that particular show.
Link to a page where the issue can be seen: hidden link
I expected to see: a column "RASSEGNA STAMPA" with the most recent press reviews as it happens in the page hidden link
Instead, I got: nothing, as if there were no results, but there are two articles that should appear. One of these two articles is: hidden link
Note that inside [wpv-no-items-found] there is just a dot (see picture).
Furthermore, in the page hidden link I'm not getting the most recent "press review" articles: they are missing.
The view is filtering articles this way:
- get the articles with the category "rassegna stampa" (press review) selected,
- AND with the same "theatrical show name" category as the page where this view is inserted,
- order by Date of review (custom field),
- show 5, ignore none.
I can't see what is happening here... the view used to work without problems. I've updated the website (WordPress 5.1.1) and its plugins but the problem remains.
Can you please help me?
Attention: I'm giving you access to a staging version of the website. The staging is private, you can reach it using the same username and password provided below. The pages' URL of the staging website are: hidden link (page with no results) hidden link (page with incomplete results) hidden link (article that should appear in page with no results)
I looked at your site and see how you have this set up.
This page is a list of press releases relating to Le avventure di Numero Primo: hidden link
Comparing that—the back-end list of articles you want to appear—with what actually appears on the front-end, I see that the articles which do not appear are those authored by gestionejole, while all of the articles that correctly appear are authored by ov_admin.
The View doesn't contain any filter for the author, and using Views debugging mode (Toolset > Settings > Front-end Content) I can see that the generated queries don't include a test for post_author.
The setting that is causing the problem is the ordering setting.
This was set to "Campo - Data pubblicazione articulo", but when I edit the posts I don't see any such field, and what I do see (in the edit screens and when inspecting the custom fields for articles created with Types) is a field "Campo - Data di pubblicazione".
So there seems to be some confusion as to which field the results should be ordered by.
This is important because it is a feature of WordPress that if you order by a field and a post doesn't have a value for that field then it will be excluded from the results (and Toolset cannot change this).
So, switching the ordering field to Data di pubblicazione won't automatically fix this, because I notice that many of the articles have no value for this field, and so you may end up just excluding a different set of posts.
If you want to order by a field, make sure all posts have a value for that field.
If you try ordering by the post_date you'll see all results are shown as expected (but not necessarily in the order you want.)