Skip to content

Graphql query - Order by related category title #10800

Answered by brandonkelly
pnpaes asked this question in Q&A
Discussion options

You must be logged in to vote

This is not possible out of the box.

You could achieve it using the Preparse Field plugin, though. With the plugin installed, create a new Preparse field that stores the related category’s title. Then add the field to your entry type’s field layout, and resave your entries using the php craft resave/entries command. Then you can order your entries based on the Preparse field’s handle.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants