Skip Navigation

[Resolved] Result ordering with views not working right?

This support ticket is created 4 years, 4 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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Kelly 4 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1725565
sessionordering.gif

I have a page with nested views on and some of my ordering isn't working and I'm not sure why.

hidden link

Mesocycles contain Microcycles which contain Sessions

This page is a current mesocycle. It has a view in it called "Microcycles in a Mesocycle" which is set to order by "Field - Microcycle Start Date". This seems to work fine.

This view has a nested view in it:
[wpv-view name="sessions-with-microcycle-in-mesocyle-view" orderby="session-date"]

The orderby is set in the short code and as session date.

if I go into the view directly the ordering populates as Field - Session Date Ascending.

However, as you can see at the bottom of the page, the sessions aren't coming out in that order. (Screenshot attached). They appear to be coming out in creation order.

Any ideas?!

#1725881

Shane
Supporter

Languages: English (English )

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

Hi Kelly,

Thank you for getting in touch.

Try adding your orderby parameter like this.


[wpv-view name="sessions-with-microcycle-in-mesocyle-view" orderby="field-session-date"" order="desc"]

If this doesn't work try.

[wpv-view name="sessions-with-microcycle-in-mesocyle-view" orderby="field-wpfc-session-date"" order="desc"]

Please let me know if this helps.
Thanks,
Shane

#1725883

[wpv-view name="sessions-with-microcycle-in-mesocyle-view" orderby="field-session-date" order="asc"] Seemed to do it.
'
Thanks.

#1726077

Shane
Supporter

Languages: English (English )

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

Hi Kelly,

Happy I was able to assist. If there are no further issues you can go ahead and mark this ticket as resolved.

Thanks,
Shane

#1727107

Thanks Shane!