WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been learning about taxonomies, custom posts etc though a lot of trial and error. I finally have it working how I want, however now I am getting some conflict with my desired slugs. I can't name my category "venue" because someplace in the database, that's already taken (I assume) - even though I've deleted the category that used it. Now when I try adding the category that I want to use the "venue" slug, WP automatically makes it "venue-2", which I definitely don't want in my url as the folder. Any suggestions for this?

share|improve this question
Any progress on this question? – kaiser Oct 13 '12 at 15:50
@kaiser, I'd love to know how to change that as well. I'd rather avoid messing with the database itself. – Wordpressor Oct 27 '13 at 22:26
Clear your trash posts, pages etc. deleting items permanently. – Mayeenul Islam Feb 12 '15 at 14:53
@MayeenulIslam That should actually be an answer - or search up an answer that you can take and mark this one as duplicate. Thanks. – kaiser Feb 18 '15 at 0:36

The slug is stored in the post_name column of your posts table. I'd recommend searching that table first before manually assigning that slug, though.

share|improve this answer
thank you! this is exactly the information I needed. It's not letting me manually assign the slug, which is a failsafe I guess. – jamie Sep 11 '12 at 23:53
What are you using? You can do this with PHPMyAdmin; I have in the past. – Joseph Leedy Sep 11 '12 at 23:56
@Joseph, how about custom post type taxonomy slugs? I don't even have any CPT posts left yet taxonomy keeps adding numbers to slugs... – Wordpressor Oct 27 '13 at 22:28
Do a complete search of your database for the slug that you are trying to use. – Joseph Leedy Oct 28 '13 at 14:21

This can also be caused by uploading images with the same file name as the post/page. In my case, I uploaded an image called 'careers.jpg' before I created a page called 'Careers', so the page was getting the '-2' appended. To fix it, I just changed the slug on the image, then I was able to change the slug on the page.

share|improve this answer

Usually when Wordpress appends the "-2" to a slug, that means you still have the old content, that you meant to delete, in the trash. Be sure to empty your wordpress trash, then try making the slug.

share|improve this answer
Is there a trash for slugs somewhere then? :) – Wordpressor Oct 27 '13 at 22:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.