Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

custom post url rewrite plugin

Any one know of any plugin that you can use to rewrite the urls for custom post that they have used before and would highly recommend?

l have created a custom plugin and it currently have the url www.mysite/custom-post-type/post but l want it to be in this format www.mysite/custom-post-type/name-of-post/post.

If anyone has an idea of rewriting this by code that would be very helpful as well.

Thanks as always guys. Zac Gordon

1 Answer

Sue Dough
Sue Dough
35,800 Points

I am unsure. You may need to look into doing a rewrite. There may be a cleaner way to do this but the only thing I can think of on the top of my head.

Check this http://stackoverflow.com/questions/5228901/url-rewrite-to-add-a-directory-at-start-of-url