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
- How do I place content on archive pages but not on main page?
- WordPress Posts By Date/Day?
- Preventing 404 error on empty date archive
- Archive filtering posts by year and month
- How to get the date dynamically from archive.php to date.php?
- 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?
- how do I get the date in a date archive page
- if in_category on archive.php
- Archive in sidebar with dropdown list of Year – Month – Day
- How can I organize/create an archive listing by Year and month
- Change behavior depending on content length
- How to edit archive page’s content inside wordpress dashboard?
- Archive pages for posts based on their taxonomy?
- How can I get archives for specific category without category_base in the url?
- Preview Post/Custom Post types in Archive
- Displaying year, month and day archives differently
- What’s wrong with my date_query?
- How we display Archives for specific categories
- When i try to open archive pages i get a 404 error
- Getting the author name on author archive page
- how to make URL link query string
- Archive links don’t work when clicked
- Get link to a specific template file [closed]
- 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
- 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
- ‘Archive’ folder for posts and pages
- Advanced author permalinks
- Filter post by clickable year [duplicate]
- Get current title of archive.php
- How to show months in wordpress archive page?
- I want my yearly archives to show a list of all posts
- How can I modify this to show number of posts-per-month?
- How to count the number of archives there are
- Get archives as array
- Create an archive listing based on meta array
- Can’t Access Sessions or Variables through pages
- How to make an archive page template using WordPress 3
- Why is my archive.php redirecting to front-page.php?
- How to get post archives urls list without any markup?
- How can I loop only months foreach year?
- Where is the content that is outputted by get_the_archive_description()?
- Create simple columned archive page
- I created a normal page, but the page displays as an archive page
- How to hide specific post type from archive?
- On my archives page, I can’t see my custom post types catergories
- How to get the Custom Post Type Archive inside a folder
- WordPress archives in header -necessary?
- redirect “about author” code to about page
- Blog pages show at most unrecognized by code
- Exclude a category of posts in author template
- what file I need to create to work date archive links?
- Any kind of custom post type in the front page and in the archive listing
- How to get type of archive whether it is post or date or category archive?
- Display an archives name
- How can I create a master archive?
- Custom design calendar archive
- Over 500.000(!) unwanted archive pages, major duplicate content problem
- Link back to (paged) archive and find the correct page
- How to show all the posts under the same Year in a page WordPress?
- How can I show a list of posts using the dynamic selection box?
- My page is shown as archive in my site
- How can I noindex my archive pages?
- Change Title Based on Taxonomy Filter in archive-{cpt}.php
- Changing author links on homepage to buddypress profiles – without affecting ability to link to author archive throughout the site
- Display archives based in post_format
- How can I modify wp_get_archives() to not use archive.php template?
- Parent and child relation code and display only first child list
- Get all posts from db between 2 specified months
- Display Day names with wp_get_archives instead of date
- Archive – Show Video from First Post
- Trying to hide subcategories which have categories without posts
- My posts section for logged in user
- How to hide the year in archive link
- Show recent posts in single-post page
- Create custom archive page for individual authors which is separate from the author.php page
- Is each issue of a magazine site a static page
- Archives and category of authors
- How to create an archive section of a WordPress site
- How to remove “Archives” after category name?
- Filter the post listing for a particular category from archive month list
- List archive year – post by post