Order by the results of a function with WP_query
@JasCav Here is something to put you in the right direction. Maybe someone can edit where needed. // args $args = [ ‘post_parent’ => $post->ID, ‘post_type’ => ‘page’, ‘posts_per_page’ => 8, ‘paged’ => get_query_var( ‘paged’ ), ‘meta_key’ => ‘team_school’, ‘meta_value’ => $school_type, ‘orderby’ => ‘wpse_last_word’, //<– make filter for ordering! ‘order’ => ‘ASC’ ]; // … Read more