Hello,
I have posts with 2 different taxonomies : "Auteurs" and "Thématiques".
On the "Auteurs" Term Archive page, I need a section to display the "Auteurs with most common Thématiques with current Auteur".
Meaning the section will display 2 other "Auteurs" terms, based on the greatest number of posts that have same "Thématiques" terms of the current "Auteur"'s posts.
I wonder if I can make this with builtin Toolset and nested Views, of if it's better to build this with a shortcode ?
Thank you.
Hello. Thank you for contacting the Toolset support.
Meaning the section will display 2 other "Auteurs" terms, based on the greatest number of posts that have same "Thématiques" terms of the current "Auteur"'s posts.
==>
I do not understand your above requirement. Can you please share test example using which I can understand your issue and based on that example I will be able to guide you in the right direction.
In my setting, "Authors" are a custom taxonomy.
And every post also have terms from another taxonomy "Thematic".
So each post is published by one or several Authors, and is about one or several Thematics.
On the page of every "Author", I need to display a section called "Other Authors you may be interested in."
Here is how I was thinking to do it, but I'm not sure if it's a good idea to do this with Views or if it would be more efficient with a custom function :
1- On Author Term Archive Page, get all posts from Author;
2- On those posts, get all terms from "Thematic" taxonomy;
3- Among all posts in database, get posts with those "Thematic" terms;
4- Into those posts, count posts for each Author and get the 2 Authors with most posts.
1- On Author Term Archive Page, get all posts from Author;
2- On those posts, get all terms from "Thematic" taxonomy;
3- Among all posts in database, get posts with those "Thematic" terms:
4- Into those posts, count posts for each Author and get the 2 Authors with most posts.
====>
Based on the information you shared it does not look like you can achieve this easily by using only nested views.
You will be able to get all posts once you loop through all the posts.
How you collect the terms belongs to Thematic as view can display the results you can not collect/stroe information to variables.
You can only display it with each loop iteration. For example, there is 25 posts, it will loop through the 25 posts belongs to the author term, you can not store the terms assigned for Thematic taxonomy anywhere.