Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

I used the following plugin lately:
https://github.com/kasparsd/numeric-shortlinks
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
add comment

Your Answer

 
discard

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.