Hi – on the admin side, I see that the available options or choices of posts within a relationship field are organized by post type, alphabetically – is there a way to arrange those by date, so most recent posts are at the top of that list? Looking through documentation on how to register a field but I’m not sure I see anything that might allow me to affect that – any help appreciated!
Thanks!
Erin
There is a filter in the relationship field that will allow this. There is a previous topic that covers how to use it, however, like the use in that topic it will not currently work unless you apply a similar has as the one I outlined in that post. Basically you can change the orderby to order by date but you’ll need to override the part of the ACF file that groups the posts by taxonomy.
http://support.advancedcustomfields.com/forums/topic/relationship-filter-query-by-page-template/
Thanks so much for your help – that explains why my test wasn’t working!
Agreed with the post-er in the previous question (http://support.advancedcustomfields.com/forums/topic/relationship-filter-query-by-page-template/) – would love to see this as an setting in future versions!
-Erin