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

Manolo Pina
Manolo Pina
6,342 Points

Category.php template permalink

there's some way to change permalink of category.php template of wordpress ?

3 Answers

Joel Rivera
Joel Rivera
29,401 Points

Hello Manolo,

If you want to remove category slug from the url then use this plugin: http://wordpress.org/plugins/wp-no-category-base/

You can also try using this permalink structure:

http://premium.wpmudev.org/blog/daily-tip-quick-trick-to-remove-category-from-wordpress-url/

Hope it helps.

Timothy Rimnac
Timothy Rimnac
26,219 Points

You can change the base permalink for categories. To change this, go under Setting > Permalinks and then "Category Base" towards the bottom. Setting it to "topics" will make the permalink for all categories "http://example.com/topics/category-name". The permalink for the actual category is set by the name of the category. I'm not sure how to change that or if that's what you're asking.

Manolo Pina
Manolo Pina
6,342 Points

Thanks for both of you i used the plugin Category base and it solved my problem!

Joel Rivera
Joel Rivera
29,401 Points

No problem, I'm glad it helped.