Oops sorry I just noticed the error in the code.
Replace:
add_filter( 'generate_footer_entry_meta_items', function( $items ) {
return array(
'date',
'categories',
);
} );
with
add_filter( 'generate_footer_entry_meta_items', function( $items ) {
return array(
'categories',
'post-navigation',
);
} );