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 want to make a random permalink for each new post. For example when an author creates a new post, he gets this kind of permalink automatically: http://mysite.com/x5Kvy6 (like bit.ly). But I want to have the option to choose a keyword instead of the random key.

Someone know the way or maybe a plugin to make this?

P.S.: I didn't research an url shortener plugin.

Any advice is welcome!

share|improve this question

I built a similar feature for my personal website, that consists of a new database table, WordPress admin page and some .htaccess rewrites. Unfortunately the setup is too involved with my particular installation to be useful as a plugin, but there are plenty of URL shortener plugins available already.

A quick search yields this WP plugin but I've never tried it. You might need to try several plugins out, but I'm sure there is one available that can provide approximately the functionality you're looking for.

share|improve this answer
Yes i have tested lots of url shortener for wordpress but they don t fit to my need, they just creat another permalink who refer to the post's permalink. – wpev Jul 30 '12 at 16:17
What are some of your specific requirements? – MechEngineer Aug 2 '12 at 20:28

I used the following plugin lately:
it normally create post ID based shortlinks, like http://domain.com/123, but has an option for alpha-numeric shortlinks too, like the example in your question. The option can be activated like this: add_filter( 'numeric_shortlinks_bijection', '__return_true' );. Take a look at the github page for more information/documentation.

share|improve this answer

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.