Tell us what you are trying to do?
create a View loop that displays CPTs by a custom field date, not one of the default sorting options
Is there any documentation that you are following?
KB
Is there a similar example that we can see?
Look here: hidden link
What is the link to your site? hidden link
General -
As you can see, I have created a View for the CPT - International Biodynamics Course. I need to add a secondary sorting criteria. I have it set to sort by title / ascending. But the courses are also listed by date, so I need to add the course date into the sorting shortcode so that courses are listed first by title, then by date.
Views lets you add primary and secondary fields for ordering, but there is a limitation that you can use custom fields for the primary order condition, but not the second, where you can only use standard WP fields.
So you could order by custom date field then by title, but not by title then custom date field.
So what you are trying to do right now is simply not supported.
If it were imperative that you order your posts in such a way the only solution would be for you to use the wpv_filter_query_post_process hook to re-order the posts yourself.
Thanks Nigel. Too bad my need here isn't available in Views. As an FYI - Advanced Custom Fields plugin does allow for the secondary sorting requirement... maybe this is something you might consider adding into your roadmap?