webappguides
Create Wordpress Theme From Scratch! Build Your Own

How to get user profile image URL in WordPress

webapps log

webapps Lab
June 7, 2021
ThemeCreation

In this post, you will find a step-by-step process that will retrieve the user profile image URL in WordPress. The common way to get the image uses the get_avatar function. The function itself returns an HTML IMG tag which makes it hard to customize. But having a profile picture link enables to set the user’s image as a background picture. […]

Continue Reading

How to get the author role in WordPress

In WordPress, there are six basics user capabilities and roles. When the blog has many authors(users) it becomes a challenge to reveal the roles of a user. Although, it is possible to get an author role in a very simple way. WordPress can provide user’s information by a get_userdata function. It is a function that has an object which is […]

Continue Reading

Get author nickname in wordpress

webapps log

webapps Lab
May 31, 2021
ThemeCreation

WordPress allows displaying the author’s nickname instead of the real name. The actual and non-deprecated WordPress function for display is get_the_author_meta. To output the nickname, the field value of nickname passes to get_the_author_meta This function is able to retrieve various data relating to the author. Check other usages here: How to get Author email Here are some ways to get […]

Continue Reading

Get Author image in WordPress without plugin

You can display the author’s images in the writer biography box which exposes the author’s social media profiles. In WordPress, there is a number of WordPress plugins that can show the gallery of the author. Some of the plugins that solve this problem include Social Author Bio and Xpandable author tab. But it is not necessary to install a plugin […]

Continue Reading

How to get author posts in wordpress

This is a short and simplified instruction to get a specific author’s posts in WordPress. If the website has at least one author, each author’s posts can be shown on a single page. It does simplify the author’s fans to see the posts of their favorite blog writer. In a simple way, to get posts from an author requires the […]

Continue Reading