WordPress is adding “category” word before my actual category name in url (and this is unsolicited)

This should be a comment but I have not enough reputation yet, sorry for that… As Jacob said in his comment this is the normal behaviour. However this issue has already been discussed many times. Check this Q/A as an example: https://stackoverflow.com/questions/17798815/remove-category-tag-base-from-wordpress-url-without-a-plugin

How to add dot(“.”) in post slug

WordPress runs slugs through its sanitize_title_with_dashes() filter function which replaces dots with dashes. Unfortunately the function doesn’t give you any control over that or any ability to change what characters are stripped or replaced. What we can do however is remove that filter and add our own version of it with a couple of modifications: … Read more

Custom rewrite rule based on other custom post type title

So after 2 days of searching I found a solution. Permalink manager lite + this function and all works fine. //Rewrite rule function pm_extra_permastructure_tags($default_uri, $native_slug, $post, $slug, $native_uri) { // Do not affect native URIs if($native_uri == true || empty($post->post_type) || $post->post_type !== ‘mieszkanie’) { return $default_uri; } $inwestycja = get_field(‘inwestycja’, $post->ID); if( !empty($inwestycja) ) … Read more