Author base rewrite broken
-
This code worked up until a recent update:
add_action(‘init’, ‘jtd_rewrite_init’);
function jtd_rewrite_init() {
global $wp_rewrite;$wp_rewrite->author_base = ‘ambassador’;
$wp_rewrite->author_structure = ‘/’ . $wp_rewrite->author_base . ‘/%author%’;
}When I disable Yoast SEO, the rewrite works fine. Not sure what is hijacking it. Anyone have a solution?
Thanks!
- The topic ‘Author base rewrite broken’ is closed to new replies.