webappguides
Create Wordpress Theme From Scratch! Build Your Own

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

Add submenu item programmatically in WordPress

webapps log

webapps Lab
May 28, 2021
ThemeCreation

Adding an item to a submenu programmatically can be done by taking the advantage of wp_nav_menu_objects hook. The submenu in WordPress can be created by retrieving the current menu. The menu has to provide the ID of each item it has. Then, the new submenu item uses the ID of a specific item to become a child of a particular […]

Continue Reading