- I've set default post category in WP Writing - settings to "news"
- Added a couple post categories like "blog" and "event"
- Added a couple posts in "news" , "blog" and "event" categories and each time selected appropriate checkbox for category.
- Changed permalink for posts to be /%category%/%postname%/
Permalink when I edit my "blog" post reads "blog/posttitlehere" but when I print out the permalink with get_permalink($postid) it has already been changed to "news/posttitlehere"
(Unwanted) result: Whatever I do, all posts (no matter it being blog-posts or event-posts) , they all have "news/posttitlehere" as the url. So each time and for all posts the actual category is replaced by "news" , the default post category.
Even on the post archive pages. Say I go to sitename.com/blog I get a list of all blog items and their "read more" links all point to "news/posttitlehere"
Anyone has a clue how to make this to become "blog/posttitlehere" or is the only way to do this through CPT ? I would think setting %category%/%postname% in settings would be enough.