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'm new with wordpress and I would like to understand better if it's possible to create pages with an url based on the category and then the post title, so:

something like http://mysite.com/category-name/the-post-title
or http://mysite.com/category-name/12345 (the post id)
or http://mysite.com/category-name/12345/the-post-title

does exist some plug-in do this or should I consider other ways like url_rewrite to do this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Yes, any of those are possible and configurable under Settings > Permalinks. Have a look at the Permalinks page for other possibilities.

One thing to note though, it's suggested to add a number at the beginning of your permalinks to reduce the number of rewrite rules WordPress has to generate to resolve all of your URLs.

The permalink strings for your examples would be:

/%category%/%postname%

/%category%/%post_id%

/%category%/%post_id%/%postname%
share|improve this answer
    
thank you, it's very simple, I'll take a wider look to the online guide, it's easy too! –  Vittorio Vittori May 11 '11 at 18:11

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.