Exclude post format from navigation July 6, 2022 by Tarik Billa At the beginning of your function add: if ( has_post_format( 'image' ) ) { return; }