Assuming that the author’s id is $author_id
, the following code should work. You can of course use this to create your own function.
<?php $url = get_the_author_meta('user_url', $author_id); ?>
<a href="https://wordpress.stackexchange.com/questions/26599/<?php echo $url; ?>"><?php echo str_replace('http://', '', $url);?></a>
Related Posts:
- If Else Gravatar Author Picture
- Author list ‘special’ author first then ‘normal’ author
- get_the_author_meta( $field, 0 ) returns the administrator $field
- Author custom fields post meta, the code?
- How can I get the author description’s excerpt?
- Filter Author Bio
- How to use Buddypress xProfile field as WordPress Bio
- Display author name, outside the loop, if they haven’t published a custom post
- Difference between last_name and user_lastname
- Getting list of top 10 users and sort on last name
- get_the_author_meta not working
- Creating a button from data from Author meta
- WordPress Author Information show paragraph?
- the_author_meta not resetting
- How to remove the author pages?
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- How to get author’s name by author’s id
- How can I publish a post with two or more authors?
- Displaying custom post types in author.php
- Order the users by the date of their latest post
- Permalink to user profile
- Show Author in custom rss feed
- No authors in change author dropdown
- More posts from the current author
- List authors of site with link and gravatar
- User Published Post Count
- What capability allows someone to change a page’s/post’s author?
- How to get posts without author?
- Just wanted to Pull Author’s Link
- list author’s posts in author.php
- add capability to author role to be able to delete attachments
- Get the excerpt for a post created by the related author
- get the username of a user in his author page
- Editing the loop for Author pages
- How can I add “posted by ‘author'” to each post?
- no emails for a user account
- Show selected value in a drop down menu
- Can I stop authors from changing the font in their post?
- Author page doesn’t change after username change [duplicate]
- Output author and description if description is not empty
- Author bio Social Links
- How to link avatar and nickname to profile
- How to update author display name on blog posts based on user role
- Change destination of author link to BuddyPress member profile
- How to remove the dropdown author data from the post edit page
- Multiple Unique Author Profiles
- How to add child page to author.php
- Restrict user role Author from viewing comments in admin interface
- How to get all possible arguments for a wordpress function
- Most recent post is missing from Author page
- I have two problems ( SEO )
- Migrate different author’s content to current author
- Declare global var from Template File and use it in Functions.php
- Get all media files for current author
- How to let authors only see website stats for their posts?
- how to get page views of author page?
- author_link filter not work correctly
- Auto assign author to new posts with wp_insert_post_data
- WordPress User role → Fetch and Print(echo)
- Conditional/Check: IF author has no First Name THEN
- Display Authors Selectively
- Display a list of all post from the Author in the author’s page (author.php) in alphebetical order
- How to show user role in author.php
- How to conditionally output to sidebar of each author’s archive and posts by each author?
- Authors divided alphabetically
- Can change twentytwelve_entry_meta “by-author” links?
- Author Page List – change to show authors instead of not subscribers
- How can I get all author written content?
- post author if statement
- WordPress Authors not showing with User Submitted Posts plugin
- Display posts differently depending on which author wrote it
- How to have certain WordPress settings set by default on a per author basis
- Check For get_post_meta on Author Archive Page
- WordPress Posts Multi Author without using plugin
- Automatically Switch between two AdSense accounts based on the author post
- How to create many author’s page?
- When clicking on author, it shows my email address in url
- Show all authors in drop down panel while choosing author for a post
- How do I edit disclaimer/contact information?
- How to add author on WordPress Pages? Not blog article page
- Yoast SEO plugin open graph add meta tag to fetch Avatar from Author Page
- Can’t use Persian/Farsi in Author slug (returns 404)
- Author.php Page views counter
- Co Authoring with different positions
- How to avoid one code multiple times instead do that through some function? Shortcode, but I think shortcode is not used in main theme’s core files?
- How do I change the user via SQL?
- How to change the post author when the post is published?
- Remove post author using child theme
- Show infos only to the author in the author.php
- if else for custom $curauth-> field
- Return one of user’s post from a category in user’s profile
- Exclude Author by ID
- Want to add a custom author link to a single.php
- Editorial Process
- Multiple Authors per post and filter post by author
- Uncode theme, create author page and author link under the blog
- Replace author with custom field in feed
- author.php get current id of author for advance custom field
- How to load locally saved author photos based on author ID
- the_author function is displaying wrong name and url