• Resolved net

    (@krstarica)


    Just noticed that all author’s links lead to 404 error, because they are malformed:

    http://author_name

    Is it possible to remove link completely? If not, maybe to make it empty or lead to #?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author freemp

    (@freemp)

    Does adding

    add_filter('author_rewrite_rules', '__return_empty_array');

    to your functions.php remove the permalinks after saving?

    Thread Starter net

    (@krstarica)

    Nope, it’s the same.

    Plugin Author freemp

    (@freemp)

    Try adding this to your functions.php:

    add_filter( 'author_link', function() { return '#'; }, PHP_INT_MAX );
    Thread Starter net

    (@krstarica)

    That worked, many thanks! Will you include it in the next update?

    Plugin Author freemp

    (@freemp)

    I just did.

    Thread Starter net

    (@krstarica)

    Great, many thanks for your help @freemp!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All links lead to Not found page (404)’ is closed to new replies.