I've started a work for a client, to improve his website. When I wanted to customize the blog I saw that the custom permalink never showed "blog" in the url but it showed %postname%. The client wants to appear "blog/year/month/postname".
There is a CPT that in the register there is a slug that has a add_rewrite_rule:
add_rewrite_rule(
'^cpt/categories/([^/]*)(/page/([0-9]+)?)?/?$',
'index.php?product_category=$matches[1]&paged=$matches[3]',
'top'
);
Every time I try to change the custom permalink it only changes the cpt's url structure and not the others.
I've already tried this suggestion Custom permalink structure: /%custom-post-type%/%custom-taxonomy%/%post-name%/ but I've not been able to get it to work. What do you suppose I'm doing wrong?