Jump to content
  • Rejoignez WebFrance

    Inscrivez vous aujourd'hui et recevez le Guide gratuit du e-Business


[Anglais] Supprimer les custom post dans le permalien


Recommended Posts

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/.”


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

Link to comment
Share on other sites
Partagez cette page :

>> Nouveau : Découvrez la marketplace d'Achat / Vente de Sites !

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


© WebFrance - Contact - Annonceurs - Conditions générales - Legal

  • Create New...