I have a strange behavior where all my posts get redirected to an url with the uncategorized category, even though a category is set.
In the backend I have a category selected, for example 'teachings', I see the url looking like this http://example.com/teachings/name-of-post, when I click it the url stays good for a second and then redirects to http://example.com/uncategorized/name-of-post
I tried flushing the permalinks by resetting them, but it doesn't work. My permalink structure is
Any idea what could be wrong?