Replies: 21 comments
-
Fetch all events ordered by festival type and then by title festival pod is a custom taxonomy.
After testing a while it seems to work when event gets a pod relationship field targeting festival taxonomy. But only without groupby.
The downside with this is that the festival relation as a taxonomy couldn´t be maintained anymore via wordpress´ quickedit form (ok, extra plugin could do it) |
Beta Was this translation helpful? Give feedback.
-
When you group by festival.name means that only one record per festival will be shown. Sounds like what you really want is to order by year, then festival name, then post title, right? |
Beta Was this translation helpful? Give feedback.
-
Brought this one over from discussion in Slack #support, we had tested with using Taxonomy and it appeared to be ignoring the orderby taxonomy.name. That's primarily what we're testing as the issue. I'm doing a local test to see if there is an issue with Also, making a note to myself that |
Beta Was this translation helpful? Give feedback.
-
@sc0ttkclark that´s true. At the beginning I misunderstood the concept of groupby but there is still the behaviour that |
Beta Was this translation helpful? Give feedback.
-
@kristonovo It sorted appropriately? Using just taxonomy like you wanted? |
Beta Was this translation helpful? Give feedback.
-
@jimtrue within the freshly installed test setup: yes. With my actual project: no. Here I still have to assign a real pod relationship field to achieve the wanted output ... are there any debug steps I could follow to give some more info? |
Beta Was this translation helpful? Give feedback.
-
@kristonovo That's quite odd. That means something else is 'stepping' on the sort. @sc0ttkclark any suggestions? You could try looking at the malfunctioning sort with the following tacked onto the URL: Do you have any other plugins running on your malfunctioning version that might be touching taxonomy? |
Beta Was this translation helpful? Give feedback.
-
@kristonovo what in your screenshot is the "festival.name"? |
Beta Was this translation helpful? Give feedback.
-
@sc0ttkclark that would be the 2014, 2015 |
Beta Was this translation helpful? Give feedback.
-
Might consider |
Beta Was this translation helpful? Give feedback.
-
I´ll try out with debug url and CAST query soon. |
Beta Was this translation helpful? Give feedback.
-
@sc0ttkclark
|
Beta Was this translation helpful? Give feedback.
-
Maybe without |
Beta Was this translation helpful? Give feedback.
-
@jimtrue 1
2
3
4
5
6
7
|
Beta Was this translation helpful? Give feedback.
-
@sc0ttkclark |
Beta Was this translation helpful? Give feedback.
-
Testing only with festival.name:
while |
Beta Was this translation helpful? Give feedback.
-
Are you entirely sure you've provided the correct information about the output? Can you provide the PHP you're using to list the content? |
Beta Was this translation helpful? Give feedback.
-
The longer it takes to find a solution the more I worry it might be my own fault 💃
... and this is the setting in event pod: |
Beta Was this translation helpful? Give feedback.
-
Any chance you'd be willing to provide a login for us to get into your Pods Admin area to look into this for you? You can send it privately on our Slack (http://pods.io/chat/) or through this form: https://pods.io/help/ |
Beta Was this translation helpful? Give feedback.
-
Yes, I could prepare a dev environment. Would need some time though. In the meantime I tested one other thing:
params always the same: Might it be possible that multiple taxonomy relations are interfering with orderby? They are kept in database as far as I know. Even if I remove the relation. |
Beta Was this translation helpful? Give feedback.
-
Following up on this, it wasn't an issue with Pods as much as it was an issue with MySQL. For whatever reason, when you did an ORDER BY a joined field, it wouldn't order the results correctly. If you added Further digging will be required by a MySQL expert to determine why this happens and how we can mitigate it in the future. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
possible taxonomy issue with group by submitted via Slack by jimtrue
Beta Was this translation helpful? Give feedback.
All reactions