true], 'objects'); foreach ($all_post_types as $post_type) { if ($post_type->name === 'attachment') { continue; } echo '
'; // Add a line break for better spacing }