Okay
  Public Ticket #4162505
Request to Change "author" Slug to "yazar" for Author Pages
Closed

Comments

  • fatih24500 started the conversation

    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:

    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 in advance for your support.

    Best regards,

  •  337
    Theme Ruby replied

    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:

    add_action('init', 'td_change_author_base', PHP_INT_MAX);

    If the issue still persists, could you kindly let me know if you have any SEO plugins installed?

    Best regards,

  • fatih24500 replied

    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,

  •  337
    Theme Ruby replied

    Glad you solved the issue.

    Let me know if you have any questions!

    Regards,