4

When I'm pulling related_entries into a channel:entries tag, I want to be able to sort those related entries (for example by date).

Example:

{related_entries id="related_field" orderby="entry_date"}

I know that the above orderby parameter is not accepted by the related_entries tag, but is there any other clever way to get those entries sorted?

5

Using P&T's Playa a lot these days for relationships but, if you don't need all that raw power, my advise would be to flip your logic a bit and use reverse_related_entries which support orderby and sort parameters.

1
  • Thanks, using reverse_related_entries in this case would become very unlogical, so I'm going to use Playa. I've implemented it before, so should be a quick fix.
    – Joan
    Feb 22 '13 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.