Display all comments or recent comments per user on author page

your problem is using author_email, you need user_id: i just use similar script. <?php $args = array( ‘user_id’ => get_the_author_meta(‘ID’), ‘number’ => 10, // how many comments to retrieve ‘status’ => ‘approve’ ); $comments = get_comments( $args ); if ( $comments ) { $output.= “<ul>\n”; foreach ( $comments as $c ) { $output.= ‘<li>’; $output.= … Read more

Creating a custom public user page

I found the answer to this from @bybloggers answer found here. https://wordpress.stackexchange.com/a/58793/12920 I modified his code very slightly to tailor it to my needs, but this is the code that worked for me and was exactly what I was looking for: // Create the query var so that WP catches the custom /member/username url function … Read more

Add admin bar link to edit author

You could try this modification of your code: function add_author_edit_link( $wp_admin_bar ) { if ( is_author() && current_user_can( ‘add_users’ ) ) { $args = array( ‘id’ => ‘author-edit’, ‘title’ => __( ‘Edit Author’ ), ‘href’ => admin_url( sprintf( ‘user-edit.php?user_id=%d’, get_queried_object_id() ) ) ); $wp_admin_bar->add_node($args); } } add_action( ‘admin_bar_menu’, ‘add_author_edit_link’, 99 ); where we use the … Read more

5 blogs on one WordPress site

If you don’t want to use Multisite, yet still want to have multiple blogs with a common backend, another idea is: Customize your theme’s Author Templates so each author’s “blog homepage” has a distinct design Create several different stylesheets, one per author. Use some conditional logic to display the appropriate stylesheet when viewing an individual … Read more

Display Authors Comments on Profile Page

What you need to use here is the WP_Comment_Query() function. So on the author.php page, you can easily get the author info and ID as followed: // get author info $curauth = (isset($_GET[‘author_name’])) ? get_user_by(‘slug’, $author_name) : get_userdata(intval($author)); // set ID $user_id = $curauth->ID; Then we add the user ID in the query arguments array: … Read more