That’s get_the_author_posts_link():
<?php echo get_the_author_posts_link(); ?>
If you want the author link for someone who isn’t the author of this page in WordPress terms – I don’t know what the bbpress state here is – then you can construct this from IDs instead (based on a snippet from twentytwentyone as you can see):
$author_id = bbp_get_user_id();
$author_data = get_userdata( $author_id );
if ( $author_data ) {
printf(
'<a class="author-link" href="%1$s" rel="author">%2$s</a>',
esc_url( get_author_posts_url( $author_id ) ),
sprintf(
/* translators: %s: Author name. */
esc_html__( 'View all of %s\'s posts.', 'twentytwentyone' ),
$author_data->display_name
)
);
}
Related Posts:
- Including post_type = ‘wiki’ in author archives
- display archive as collapsing links
- Remove author archive
- Author archive doesn’t work [closed]
- How to conditionally check for author archive when is_author() fails to work because the author has no posts
- How to display an archive with multiple authors
- Missing content on author archive page
- Sort results by name & asc order on Archive.php
- Default archive URL wordpress
- Increase number of posts in archive page
- How do I remove unwanted pages like archive, search, etc.?
- How can I lock down an old wordpress install I don’t intend to update?
- What is the link to my default “archive” page?
- How do I place content on archive pages but not on main page?
- WordPress Posts By Date/Day?
- WordPress: How to get the current logged in author page URL?
- How can I get the Month Name from Archive?
- Preventing 404 error on empty date archive
- is_archive() returns false on the archives page
- What is archive.php used for?
- Archive by Year
- Archive widget – limit number of months to 12
- How do I visit archive-post.php?
- How do I make wp_get_archives show me months where only pages were created?
- Sort custom-posts in archive.php via meta-key?
- How to Change Author Posts URL
- Show Custom Post Type by Author
- Output yearly archive within a page
- Get current users post URL?
- Create a month by month archive of pages (not posts)
- Root level category, tag, author and archive pages to work
- How to show specific year archive into dropdown list
- Archive filtering posts by year and month
- How to get the date dynamically from archive.php to date.php?
- How to make a custom Archive Page
- Making next_posts_link(); return posts by month
- Count posts for each year
- How can I change the way dates shown in the archive widget?
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- how do I get the date in a date archive page
- How can I get the ID for an archive page? [closed]
- if in_category on archive.php
- Archive in sidebar with dropdown list of Year – Month – Day
- Arrange and separate posts
- How can I organize/create an archive listing by Year and month
- Change behavior depending on content length
- Customize first page of category
- How to edit archive page’s content inside wordpress dashboard?
- Cache previous versions of website?
- Archive pages for posts based on their taxonomy?
- front end publishing not working on front-end page
- How to show static placeholder when less post elements in archive page?
- How can I get archives for specific category without category_base in the url?
- condition for only if is archive for default post type
- Show only post titles in archives?
- Preview Post/Custom Post types in Archive
- if there is only one post in the category, directly open
- How to hide a post from archives
- How to disable monthly archive
- Displaying year, month and day archives differently
- What’s wrong with my date_query?
- How we display Archives for specific categories
- How to automatically remove links from WordPress Biographical Info?
- How to link avatar and nickname to profile
- When i try to open archive pages i get a 404 error
- How to Create Custom Archive page
- Does only custom post type have post type archive pages?
- Guest Author – How to display posts on /author/ archive page
- Modify text after post count
- How to show year/month archive including months with no posts
- Getting the author name on author archive page
- how to make URL link query string
- Displaying Archives List
- Archive links don’t work when clicked
- Custom archives function
- Get link to a specific template file [closed]
- Page is displaying blog archives
- terms_description and admin problem
- wp_get_archives() display months even if there is no posts
- how do I encode links to specific archive searches?
- Add additional first page, last page links to the_posts_pagination()
- Some archive by year page return 404
- Group Posts by Category in Monthly Archive
- Loop through years and months in WordPress archives
- Dropdown to select posts by month and then displaying those posts in the archive page
- Link Author’s Website in Author Bio
- If one taxonomy contains the same term as another then display post
- How to filter by date & a specific custom post type post-WP 4.4?
- Having a problem with Next and Previous Links
- Custom post type archive page thinks I’m not logged in
- Is there a better way to do headings for (all) archives?
- Date Archive pages 404 error
- ‘Archive’ folder for posts and pages
- Advanced author permalinks
- How to add subcategories to the blogroll?
- Checking if a specific date archive is being displayed
- Constructing An if Statement with is_category(); in archive.php
- Filter post by clickable year [duplicate]
- next and previous year month and day for archive page
- Wrap the “show_post_count” between div