Title: Add Author&#039;s URL
Last modified: August 22, 2016

---

# Add Author's URL

 *  [atom8bit](https://wordpress.org/support/users/atom8bit/)
 * (@atom8bit)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/add-authors-url/)
 * Hi! I’m trying to add a spot into the PHP code below to that it calls on the 
   website’s URL from their profile when they post as the href in the first a tag.
   I am using a child theme based off of Iconic One theme.
 *     ```
       $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
       		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
       		esc_attr( sprintf( __( 'View all posts by %s', 'themonic' ), get_the_author() ) ),
       		get_the_author()
       	);
       ```
   
 * Thank you!

The topic ‘Add Author's URL’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [atom8bit](https://wordpress.org/support/users/atom8bit/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/add-authors-url/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
