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 trialKaitlyn Rich
3,028 PointsAdding "blog" to permalink structure
Hi, I'd like to add "blog/" in front of all/only my blog posts in the permalink structure. Is there a way to do this without using categories?
Thanks for you input!
1 Answer
henrikh
3,666 PointsYou could just simply add "/blog/%postname%/" in your permalinks settings. This will only effect your blog posts, and not your pages. However, if you have an portfolio system, you should set 'with_front' to false when registering the new post type.
http://codex.wordpress.org/Function_Reference/register_post_type