I read lot of topick, but it don't work. And I really don't know what i do wrong ...
I put this code the the function.php of my child theme :
function capitaine_rewrite_url() {
add_rewrite_tag( '%payment%','([^&]+)' );
add_rewrite_tag( '%meals%','([^&]+)' );
add_rewrite_tag( '%property-type%' ,'([^&]+)' );
add_rewrite_rule(
'properties/([^/]+)/([^/]+)/([^/]+)',
'index.php?post_type=properties&payment=$matches[1]&meals=$matches[2]&property-type=$matches[3]',
'top'
);
}
add_action( 'init', 'capitaine_rewrite_url' );
I don't dorget to update /wp-admin/options-permalink.php"
Nothink change ...
With "Monkeman we can see "my" code go first before the standard
any idea what I'm forgetting?
thnaks for your help !