As it’s not clearly stated, how (in code) the “related” CPTs are interconnected, I want to post a mostly overseen possibility for CPTs.
When you register_post_type()
, you have the argument of hierarchical
that should be set to true
to allow for 'supports' => array( 'page-attributes' )
. This then allows you to define an order manually.