I am currently using the Foxiz theme and would like to change the default /author/ slug in the author archive URLs to a more localized and SEO-friendly version: /yazar/. For example, instead of:
https://xxxx.com.tr/author/fatihates/
I want it to appear as:
https://xxxx.com.tr/yazar/fatihates/
I have tried using the following function in my theme’s functions.php file:
php
KopyalaDüzenle
function td_change_author_base() { global $wp_rewrite; $wp_rewrite->author_base = 'yazar';
}
add_action('init', 'td_change_author_base');
After saving permalink settings, the change doesn’t take effect — the URL structure remains the same. It seems the theme may be overriding or handling this differently.
Could you please provide a permanent and theme-compatible solution for changing the "author" slug to "yazar"?
This is important for both localization (Turkish language) and SEO best practices.
Important Note: I am aware that this change can be achieved using plugins. However, my goal is to implement a clean and plugin-free solution for performance and long-term maintainability.
Thank you very much for your quick and helpful response.
You're absolutely right — the code was working correctly. After further inspection, I realized that the issue was caused by my SEO plugin (Rank Math), which was overriding the author base settings. Once I updated the relevant setting in the plugin, the issue was fully resolved.
I appreciate your support and clarification on this.
Hello,
I am currently using the Foxiz theme and would like to change the default /author/ slug in the author archive URLs to a more localized and SEO-friendly version: /yazar/. For example, instead of:
I want it to appear as:
I have tried using the following function in my theme’s functions.php file:
After saving permalink settings, the change doesn’t take effect — the URL structure remains the same. It seems the theme may be overriding or handling this differently.
Could you please provide a permanent and theme-compatible solution for changing the "author" slug to "yazar"?
This is important for both localization (Turkish language) and SEO best practices.
Important Note: I am aware that this change can be achieved using plugins. However, my goal is to implement a clean and plugin-free solution for performance and long-term maintainability.
Thank you in advance for your support.
Best regards,
Hi,
The code is correct and has been tested to work with the Foxiz theme.
However, the issue may be caused by a third-party plugin, particularly an SEO plugin that could be overriding the permalink structure.
To rule this out, please try updating the hook priority like this:
If the issue still persists, could you kindly let me know if you have any SEO plugins installed?
Best regards,
Hi,
Thank you very much for your quick and helpful response.
You're absolutely right — the code was working correctly. After further inspection, I realized that the issue was caused by my SEO plugin (Rank Math), which was overriding the author base settings. Once I updated the relevant setting in the plugin, the issue was fully resolved.
I appreciate your support and clarification on this.
Best regards,
Glad you solved the issue.
Let me know if you have any questions!
Regards,