Anthony Posted September 10, 2014 Report Share Posted September 10, 2014 There are times that you want to stray from the regular permalink structure that WordPress applies to your custom post types. For a recent project I was needing to remove the CPT slug from the permalink, so a page url like “/events/some-event-slug/” would have the permalink of “/some-event-slug/.” http://www.markwarddesign.com/2014/02/remove-custom-post-type-slug-permalink/ Cet article est en Anglais, mais son contenu est vite compréhensible et surtout miraculeux alors oui je me permet de vous le partager. Le bout de code contenu dans cet article vous permet tout simplement de supprimer les "custom post type" contenu dans les permaliens sur Wordpress. Exemple : http://www.votresite.fr/portfolio/nomdelapage Quote Link to comment Share on other sites Partagez cette page :
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.