Dynamic User Id

You can use get_the_author_meta() which returns the requested data of the author of the current post. If you’re on the author archive page (e.g. author.php) that will be the ID of the user whose profile you are on. get_the_author_meta( ‘ID’ );

Modifying Author Link to add Author Meta in URL

I don’t know the context, but i got your use case working like this: Add new permastruct and make sure to regenerate permalinks (Settings > Permalinks > Save) /** * Add additional permalink * * @uses https://codex.wordpress.org/Plugin_API/Action_Reference/init */ function wpte_add_permastruct(){ add_permastruct( ‘%author_trip_vendor%’, ‘operator/%author%’, [ ‘ep_mask’ => EP_AUTHORS, ]); } add_action( ‘init’, ‘wpte_add_permastruct’ ); Added this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)