Title: Breadcrumbs in Attachment adding ?post_type=attachment
Last modified: January 14, 2021

---

# Breadcrumbs in Attachment adding ?post_type=attachment

 *  [onsecrethunt](https://wordpress.org/support/users/onsecrethunt/)
 * (@onsecrethunt)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/breadcrumbs-in-attachment-adding-post_typeattachment/)
 * Hi,
 * I am using the code
 * `<div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/">
   <?php if(function_exists('bcn_display')) { bcn_display(); }?>`
 * but in the attachment pages on category URL `?post_type=attachment` , added how
   can I remove it?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Havlik](https://wordpress.org/support/users/mtekk/)
 * (@mtekk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/breadcrumbs-in-attachment-adding-post_typeattachment/#post-13920048)
 * To remove the post type argument from archive URLs, you can use the `bcn_add_post_type_arg`
   filter. This article provides an example of using this filter: [https://mtekk.us/archives/guides/how-to-remove-post_type-from-breadcrumb-navxt-urls/](https://mtekk.us/archives/guides/how-to-remove-post_type-from-breadcrumb-navxt-urls/)
 * That said, the default for attachments probably shouldn’t include the post type
   argument (or at least should use the parent post’s post type). I’ll look at this
   for the next release.
 *  Thread Starter [onsecrethunt](https://wordpress.org/support/users/onsecrethunt/)
 * (@onsecrethunt)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/breadcrumbs-in-attachment-adding-post_typeattachment/#post-13920226)
 * Thank you for the support John. I will do the same.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Breadcrumbs in Attachment adding ?post_type=attachment’ is closed to 
new replies.

 * ![](https://ps.w.org/breadcrumb-navxt/assets/icon.svg?rev=1927103)
 * [Breadcrumb NavXT](https://wordpress.org/plugins/breadcrumb-navxt/)
 * [Support Threads](https://wordpress.org/support/plugin/breadcrumb-navxt/)
 * [Active Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breadcrumb-navxt/reviews/)

## Tags

 * [attachment](https://wordpress.org/support/topic-tag/attachment/)

 * 2 replies
 * 2 participants
 * Last reply from: [onsecrethunt](https://wordpress.org/support/users/onsecrethunt/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/breadcrumbs-in-attachment-adding-post_typeattachment/#post-13920226)
 * Status: not resolved