Permalink Structure problem with cpt and custom taxonomy

Welcome to WP StackExchange! You may want to try something like this, which uses the same rewrite setting as your register CPT:

$args = array(
    'rewrite'      => array('slug' => 'events/ecat', 'with_front' => false)
);
register_taxonomy( 'ecat', array( 'events' ), $args );

Sources:

https://cnpagency.com/blog/the-right-way-to-do-wordpress-custom-taxonomy-rewrites/

https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)