add_action( 'pre_get_posts', function( $query ) {
if ( 'fl-builder-template' === $query->get( 'post_type' ) ) {
$query->set( 'orderby', array(
'post_date' => 'DESC',
'title' => 'ASC',
) );
}
});
2 Likes