Show text only to the author of the article
I came to a conclusion ! if ($current_user->ID == $post->post_author)
I came to a conclusion ! if ($current_user->ID == $post->post_author)
An URL-friendly version of your username (login) will be part of the url (slug/nicename) to your author archive page, unless your email is equal to your username. You can change this by a plugin like WP Author Slug. Then make sure your display name, as found on your profile page, is something you want people … Read more
How to create many author’s page?
How to fix a specific page (author archive) loading speed?
So I’ve broken this up into three parts, it’ll allow you a lot more flexibility with adding additional authors if that ever comes up. enqueue_adsense() adds the Google scripts for adsense. add_inline_adsense() prints the adsense code to display the ad immediately across the top of the page, so right after the body tag. function_js_async_attr() is … Read more
can’t see information on author page that don’t have posts
Get top authors for the last 30 days with posts count and avatar
I would loop through an array with the authors and then get their avatar and save them in a different array. You can use get_users() to get the users and you already know how to get their avatar. You can get users using get_users() by giving it an array with arguments to specify what you … Read more
WordPress Posts Multi Author without using plugin
You can use <?php echo get_the_author(); ?> And if you would want to use conditional logic you could use <?php if(get_the_author() === ‘Author Name’) { ?> Do some HTML <?php } ?>