[resolved] [Plugin: El Aleph] rewrite rule problem (3 posts)

  1. nesticus
    Posted 7 years ago #


    first of all thanks to detective for such a useful plugin, i loved it.

    i faced a problem with rewrite rules;
    i translate the po file and produce a .mo file for Turkish, everything seems all right but listing the posts of a user is not working.

    although i changed the word "author" to "yazar" in Turkish, the permalinks still says author like "/author/username"

    i tried to change the rewrite rule from database, but got php errors.

    any idea how can i fix this?
    and probably i think this is a bug in the plugin, and hope i found it :)

  2. Detective
    Posted 7 years ago #


    If you are linking to author posts, it's not a problem in Aleph, but a problem in WordPress. I have the same problem. You could do something like this on a plugin:

    function translate_author_link($url){
            return str_replace("author", "yazar", $url);
    add_filter('author_link', 'translate_author_link');

    Hopefully this should work.

  3. nesticus
    Posted 7 years ago #

    it worked!
    thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic