Support » Plugin: VK Post Author Display » Change the structure of the url

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author kurudrive

    (@kurudrive)

    Ah…

    Should say:
    https://mysite.com/usuario/username/

    This page is aleady exist?
    ( You aleady customized author archive page permalink? )

    Plugin Author kurudrive

    (@kurudrive)

    If you aleady customized author archive page permalink that
    please write to such as child theme’s functions.php

    add_filter( 'author_link', 'my_author_link_change' );
    function my_author_link_change( $link ) {
    	global $post;
    	$user = get_userdata( $post->post_author );
    	$link = home_url( user_trailingslashit( '/usuario/' . $user->data->user_login ) );
    	return $link;
    }
    • This reply was modified 7 months, 3 weeks ago by kurudrive.

    Perfect !
    Your response has been very helpful!
    Thank you !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change the structure of the url’ is closed to new replies.