I am setting up an auction site on WordPress and am trying to change a button that originally leads to the authors profile to lead to a page named after the author
This is the original code:
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>"
This is what is have done so far:
<a href="<?php echo get_page_link( get_page_by_title(author_name)->ID ); ?>"
<div class="col-4">
<a href="<?php echo get_page_link( get_page_by_title(author_name)->ID ); ?>" class="btn btn-primary btn-block text-uppercase"><?php echo __("Visit Profile","premiumpress") ?></a>
</div>
I know i am missing a line that is in getting the authors name which will be used as title for the page id that needs to be echoed, i need help with fixing the code