add_filter('twentytwenty_show_categories_in_entry_header', '__return_false');
// removes category in entry header
add_filter('twentytwenty_post_meta_location_single_top', '__return_empty_array');
// removes author, post-date, comment count, sticky status in post head
add_filter('twentytwenty_post_meta_location_single_bottom', '__return_empty_array');
// removes tags in post footer
Instead of using '__return_empty_array' you can also use a function to define what should actually be shown.
function wps_display_custom_tags ($post_meta) {
// delete meta tags you do not want to display
return array( 'author', 'post-date', 'comments', 'sticky', 'tags');
}
add_filter('twentytwenty_post_meta_location_single_top', 'wps_display_custom_tags');
-
This reply was modified 4 years, 9 months ago by raffa13.
-
This reply was modified 4 years, 9 months ago by raffa13.