How to create an author widget in WordPress Without Plugin

95media
1 min readFeb 12, 2021

--

How to create an author widget in WordPress Without Plugin

Let say you are a blogger and looking for a way for your audience to get to know who you are, and your blogging platform is WordPress the easiest way to achieve that is by using a plugin.

However, there is nothing wrong with using a plugin, although, that adds an extra plugin to your website with a slim chance of some unnecessary resources loaded and custom CSS code to ensure the out of the author plugin match your theme.

Nonetheless, in this blog post, I will be showing you how to create a custom How to create an author widget in WordPress Without Plugin so let get started. We will need to create two files named author-widget.php and author-fields.php I like to have a folder in my theme called includes or inc which contains all my includes files and include them in my widgets.php like the image below.



In our author-widget.php we have to extend the WordPress Widget class and register our custom widget in our theme as we did below.

--

--

No responses yet