I hope you can point me in the right direction here. I need to display CP "News" in a view only if they're not currently being displayed in another view.
I have 3 views:
1. Top news, with the assigned taxonomy "Top News" and displaying only the latest "10" posts.
2. Featured news, with the assigned taxonomy "Featured News" and displaying only the latest "15" posts.
3. All news, which displays all news including Top and Featured news.
Now, what I need to do is for the posts in the first 2 views not to display in the last one "All news" if they're currently being displayed. So, once a new post is added with any of these 2 taxonomies "Top News" and "Featured News" and pushes the last one out of display, this removed one will show in the "All news" view. In other words, only to show one post at any time in any of these views.
If you do not know how to do it, please share problem URL where you want to display ALL news and access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
My previous post got submitted incomplete by error...
Thank you for your feedback Menish. I've never configured views this way and since you offered I'm going to accept your help. I have provide you with the site access info. Under views, there are only 3 views, so it should be simple to know which one is what. The page where I have them currently being displayed is /home-news
Let me know if you need any additional information
Can you please share details on what page/post you added the other two views that displays the filtered results based on terms "Top News" and "Featured News"?
I have the 3 views at this page: hidden link (this will eventually be the homepage). The views are:
[wpv-view name="home-top-news"]
[wpv-view name="home-featured-news"]
[wpv-view name="home-all-news"]
The first two views are set the same:
Content Selection: Post Types: News Articles
Don't include current page in query result
Order by post date, descending
Display 10 items for Top news
Display 10 items for Featured news
Query Filter: Taxonomy filter: Select posts with taxonomy: Article placements in one of these: Top news and Featured for the other view
And that's basically it until I know how to proceed.
Then, the view [wpv-view name="home-all-news"] has: News Articles, limit to 30 items ordered by post date, descending
I saw your filter but this is not what I want to achieve. With your filter, it simply skips the posts with the taxonomies selected. However, my intention is to not have to uncheck the taxonomy in order to show under All News view. The taxonomy will continue to be checked, as we'll have an archive all of Top News, so, the filter itself should be based if the post is not in the top 10 Top news (or top 15 featured news) then it shows under All news.
Does that make sense? In other words, when a new top news is added the 11th one will show under All news, and so on.
As I can see with Top news view you set view to display 10 posts only.
As I can see with Featured news view you set view to display 15 posts only.
Do you mean that, if there are 12 top news and 17 features news, the remaining 2 top news and 2 featured news you want to display with ALL news view (having said that the ALL news view should display the other remaining top and feature news posts only?)
Exactly. Basically any excess of the limit set for top or featured news will display under all news without having to deselect the taxonomies. Is this possible?
Thanks again Minesh for your assistance. This is almost there.. I think.
Under All news, I need to display all posts including those that are not under those two taxonomies. Basically display all of them by published date including top and featured posts that exceeded their limits you set in your filter. I went ahead and removed the query filter "Select posts with taxonomy: Article placements in one of these: Featured, Top news " from the all news view, but the posts that don't have a taxonomy don't show, for example, this one: hidden link
I thought by removing the query filter would display all, but this is not the case. Is this set under custom filter?
Yes - you should just remove the "Query Fitler" and it will display all posts but there is no way to order it by display the posts order by remaining terms first and then other posts.
That's what I thought, so I removed the query filter and still only posts with the taxonomies show. The ones without don't show and I have the view sorted by date descending. Shouldn't the posts without taxonomies blend in with all other post?
Ok, I understand. So it's not possible to list them all without listing top and featured first? Just like what a normal view would display regardless of taxonomies? So, under "view all" it displays all, including the excess from the two taxonomy views.