Problem:
How to output a View to show Featured posts first?
Solution:
If "featured" is from a custom field, you can order the View results by that custom field, then a secondary field such as post date.
In the client's case "featured" is determined by a taxonomy, which cannot be used for ordering, and so needs either two separate Views or a single View where the results of the query are manipulated before being output, using the wpv_filter_query_post_process filter.
Relevant Documentation:
https://wp-types.com/documentation/programmer-reference/views-filters/#wpv_filter_query_post_process
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 5 months ago.
Assisted by: Nigel.