0

Is it possible to add the post category name to the the WordPress single template url structure if i am not using category pages to build the site menu?

from

www.domain.com/single-post-title

to

www.domain.com/category-name/post-title

I am using a custom page template that is loading posts from a specific category.

Would I have to edit the urls in the .htaccess file, or is it possible to do this using WP_Rewrite?

  • Since posts can have multiple categories, how are you to select which one is used? – s_ha_dum Nov 30 '13 at 19:52
  • in this scenario, posts wont have the need to have multiple cats, just the one – RoseCoder Nov 30 '13 at 20:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.