Skip Navigation

[Resolved] Conditional views displaying out of order

This support ticket is created 3 years, 3 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 17 replies, has 3 voices.

Last updated by jennZ 3 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#2160401

Shane
Supporter

Languages: English (English )

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

Hi Jenn,

Ok I understand a bit better now.

I've checked on the wordpress document to see if we could use the WP_Query function to create a solution but its not possible to sort your posts by the taxonomy term using the WP_Query.

Given the example that you've sent, the best solution would be to recreate these taxonomy terms as custom fields.

With the custom fields you are able to sort by them as well as set them up as filters all in the same view without any nesting of your views. I was under the impression that you wanted to prefilter the view by the taxonomy term.

However the clear solution forward here is to use custom fields for the Speaker Level then you will be able to use the ordering option on the view to order you posts by the custom fields.

Please let me know if you have any questions on this as we try to assist as best as we can to get this resolved.

Thanks,
Shane

#2160615

Hallelujah! Sorting it by a custom field corresponding with Speaker Levels worked perfectly. I went back to the original view I'd created and updated the conditions and sorting accordingly (I still had to leave the taxonomies for Speaker Level for the conditional blocks for some reason, but whatever; no big deal) and it worked like a charm. Thank you for all your help on this!

#2160617

My issue is resolved now. Thank you!