Getting add_rewrite_rule and add_rewrite_tag to work

I simply changed it to this, and it works!

add_action( 'init', 'addMyRules' );
function addMyRules(){
    add_rewrite_rule('^people/([^/]*)/?','index.php?author_name=$matches[1]','top');
    add_rewrite_tag('%author_name%','([^&]+)');
    flush_rewrite_rules();
}

Leave a Comment

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