On this website hidden link
I want to show only one article per author (antiquair).
In this website we have many authors. Each author has 1 or more articles.
In the upper view, I only want to show the 14 newest articles, but not more than 1 per author.
is this possible?
(in the second view we show them all, sorted on publish date.)
Hello. Thank you for contacting the Toolset support.
It seems to me that you will require to use the nested view one user type view should loop through all the author users and another post type view that should help you to get the one post belong to that author.
As this will be nested views, you will not be able to sort the result based on the data but the author.
If you can share problem URL where you want to display those author post as well as access details I will setup a demo for you.
*** 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.
The thing is that either you can loop through the 14 new users and then per user we can display one article belongs to that user or either we can navigate to 14 latest articles irrespective of author.
I'm not sure now if you changed the plan as you added the post-relationship, if you can share what could be your expected output with test case example that will help me to guide you in the right direction.
My wish in the top view is:
The newest articles, but different authors. So, when an author published 3 new articles, we will skip number 2 and 3, only show the latest.
14 tiles (articles) from 14 authors, filtered on last published.
the relationship to antiquairs is mayby usefull in making a view?
than it would be:
14 tiles from 14 antiquairs, filtered on last published article.
If you can setup a demo content and share what could be your expected output then I can review it and that will help me to guide you in the right direction.
I sent you 2 pictures.
I added the name of te antiquair below the article (thanks to the relationship)
This is what we like to have. Filter is removed, we don't need that here.
I still not figure out from where the first image is displayed. I think its from the child post type "Artikelen" but even if the image is displayed from "Artikelen" post type, what is the reason that it should be displayed at first place with your "this-is-what-i-want.jpg".
The thing is that we do not have a way to group the posts by author until and unless either you use nested view or add custom query to filter your result.
If you use nested view where the top view will loop through the authors it will loop through all the authors and inside the author view we need to add post view that should fetch the posts belongs to that parent author passed by parent view and we can limit this inner view to display only 1 result.
I do not see any other way to group the post by author.