Skip Navigation

[Resolved] Ordering content in a view

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 3 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2288843

Hi !

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

#2288911

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lauren,

Thank you for getting in touch.

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 .

Thanks,
Shane

#2288947

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 ?

#2288981

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Lauren,

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.

Thanks,
Shane