How to create many author’s page?
How to create many author’s page?
How to create many author’s page?
User role templates
I oubt the plugin will change your site URL. Can you please check your wp_options table and look for the siteurl and home options – please check these are both set to the correct URL. Can you log-in to the admin area still? You may need to refresh your permalinks. If not, try to rename … Read more
Display post by Random Authors on Page Refresh
Try This for IF : if(!empty($user->user_url)) { // OUTPUT } All Code $website = $user->user_url; if(!empty($user->user_url)) { printf(‘<a href=”https://wordpress.stackexchange.com/questions/353378/%s”>%s</a>’, $user->user_url, ‘<i class=”icon-home”></i>’); } $twitter = get_user_meta($user->ID, ‘twitter_profile’, true); if(!empty($twitter)) { printf(‘<a href=”https://wordpress.stackexchange.com/questions/353378/%s”>%s</a>’, $twitter, ‘<i class=”icon-twitter”></i>’); } $facebook = get_user_meta($user->ID, ‘facebook_profile’, true); if(!empty($facebook)) { printf(‘<a href=”https://wordpress.stackexchange.com/questions/353378/%s”>%s</a>’, $facebook, ‘<i class=”icon-facebook”></i>’); } $google = get_user_meta($user->ID, ‘google_profile’, true); if(!empty($google)){ … Read more
Welcome to Stack Exchange! In your theme’s function.php, you can add this code: add_filter(‘body_class’, function($classes) { $classes[] = ‘author-‘ . get_current_user_id(); return $classes; }); This will add a CSS class with the current author’s ID to <body> which you can then target: .author-2 .widget_bt_claim_widget { display: none; } See https://developer.wordpress.org/reference/functions/get_current_user_id/ for return values.
Is there a reason why you don’t just want to make the “author archive” a page and list them all on the page with a shortcode ? If that’s an option, simply put your single author template in author.php Author templates – Template hierarchy If not, you could take your current template (that you’ve put … Read more
There’s no direct way of getting the post author’s email from a post. You can get the email by using the author ID, which is present in standard WP_Post object. $post_author_id = intval( $post->post_author ); $post_author_email = get_the_author_meta(’email’, $post_author_id); Or if you just have the post ID $post_author_id = intval( get_post_field( ‘post_author’, $post_id ) ); … Read more
How to fix a specific page (author archive) loading speed?
Get authors list and sort them by recent posts