I'm trying to order content on a view.
i'm working on this page : hidden link
As you see, there's 3 taxonomies naming "Secteurs" (i've got a filter working on it working fine.
My client just want that this page shows (before filtering, when we just arrived on it) the content bu order : first "Boradcast" taxonomy, then "It" and finally "Developpement personnel"
Is there a way to this result. The deg=fault ordering of the main view didn't allow me to select taxonomies.
How is it possible ?
Thks
There isn't any easy way to sort your posts by Taxonomies. Given that you're using a custom search as well, it adds another layer of difficulty.
The only way we can sort your view by the taxonomy is by using a nested view where the Taxonomy is the parent view and your post view is the child view.
With this the Parent taxonomy view will be ordered which will then display the child view by the parent order. However since you're using the taxonomy filter as a search as well then it won't be possible .
Hi & thank you for the very quick help.
if i understand i need to create, for my example, 3 views (nested views) inside the main view. Each one with the taxonomy.
in this case is the main search working on all the views ?
Is there au tutorial for creating a such page ?
With the nested view you will lose the functionality to filter by the taxonomy because the taxonomy filter will now become reliant on the Parent view in order to set the taxonomy ordering for the child view.
You can still have the search but without your taxonomy frontend filter. The filter can either be used as a frontend filter for searches or a static type filter that isn't reliant on the frontend search. It's not possible to have both.
Is there au tutorial for creating a such page ?
No there isn't a written tutorial on how to create such a page.
There might be a workaround if the Custom uses a custom field instead of the Taxonomy. The reason is that you're able to sort the view by the selected custom field value as well as to add that same custom field as a frontend filter.