mardi 24 février 2015

Stop WordPress from reserving slugs for media items?


I am experiencing some odd behavior, that apparently happens "out of the box" with WordPress.


If I upload a file through the media manager called: services.jpg; then go try to create a page with the permalink http://ift.tt/1EpeD4A; The slug services-2 is given instead, because the attachment is already using that slug.


Visiting http://ift.tt/1EpeD4A loads the attachment page.


I have not enabled any plugins or added anything into functions.php to modify the rewrites for attachments.


Has anyone run into this before? Know where to start to disable this functionality?





Aucun commentaire:

Enregistrer un commentaire