Title: Rewrite not triggering?
Last modified: December 14, 2017

---

# Rewrite not triggering?

 *  Resolved [khomel](https://wordpress.org/support/users/khomel/)
 * (@khomel)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/rewrite-not-triggering/)
 * The page I specified should be forwarding to [https://reputationpartners.com/team/nick-kalm/](https://reputationpartners.com/team/nick-kalm/),
   but it is not. I have another CPT done the same way with CPTUI and it does forward
   properly. Basically, my CPT is showing up without the /team/ slug, showing on
   single.php instead of appearing on the /team/ slug only. It shows up on both,
   and I’m not sure why. I appreciate any help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frewrite-not-triggering%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [8 years, 6 months ago](https://wordpress.org/support/topic/rewrite-not-triggering/#post-9783815)
 * What post types have you registered, and also do you have a PAGE with the same
   slugs?
 * From what I can see, this url: [https://reputationpartners.com/nick-kalm/](https://reputationpartners.com/nick-kalm/)
   is actually leading to an attachment url, for the wp-content/uploads/2017/10/
   Nick-Kalm.jpg image.
 * It’s not a common collision of sorts, but it can definitely happen since media
   library items are technically part of the “attachment” post type.
 * The first URL presented looks like a post for Nick in a “team_member” post type.
 *  Thread Starter [khomel](https://wordpress.org/support/users/khomel/)
 * (@khomel)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/rewrite-not-triggering/#post-9783862)
 * I do have pages with the same slug for both of my CPTs, /team and /our-work. 
   It works as intended with our-work, but not with team. And yes, the team_member
   post type with the custom slug of team is the proper display.
 * I see. I didn’t know images had their own permalinks. I guess I just never had
   a need for it. But that is exactly what is happening. Media attachment url.
 * It appears I cannot change the permalink for those attachments. I’m going to 
   research this now, but do you have any quick advice on how to handle this in 
   the meantime?
 * Thank you so much for your help!
 *  Thread Starter [khomel](https://wordpress.org/support/users/khomel/)
 * (@khomel)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/rewrite-not-triggering/#post-9783926)
 * Upon some quick research, I see that I can redirect media attachments to parent
   posts in Yoast, and I can also attach unattached images to posts/pages in the
   media library. Done, and resolved! Thank you so much again for your help, Michael.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [8 years, 6 months ago](https://wordpress.org/support/topic/rewrite-not-triggering/#post-9784081)
 * You’re welcome. Glad I could provide some leads on the issue sources. 😀

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

The topic ‘Rewrite not triggering?’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/rewrite-not-triggering/#post-9784081)
 * Status: resolved