General Wordpress Blogspot Forums Crypto Traffic Money
Verification Badge For WordPress, Say No More Doc!
What is Battery Calibration? Why and when your smart phone battery needs calibration /
2018/2019 NECO Mathematics questions and Answers [Obj & Essay] /
All You Need to Know About Mpbaze.com.ng /
Now Trending on GithubNG
|you can now advertise here|
|Verification Badge For WordPress, Say No More Doc! by GitHubNg.Com: 12:04 pm On October 10, 2017|
A verification badge is now a common thing over the internet. Probably you’ve seen it on Facebook, Twitter, Instagram etc. No, I’m not here to talk about the history or origin of the verification badge. I’m here to show how to add a verification badge facility on your WordPress site. This is gonna be interesting! Look, I know not everyone is a code savvy. So, I wrote a tiny plugin for this. The plugin is attached in the attachment section below the post.
Setup the verification badge
First of all, you’ve to download the plugin. Then log in to your WordPress dashboard with admin permission and navigate to “Plugins > Add New > Upload Plugin” and upload the archive that you’ve downloaded earlier. Then install the plugin and activate. Now, we’re all set!
That was the UI part. We need to show the verification badge on the site, right? The plugin provides two functions for you.
In this example, we’re assuming we are on the author page aka author.php template.
Now we have the user ID on the variable $user_id. Do display the verification badge use this code.
“But I don’t like that badge. I want to use my own badge and want to customize the HTML!”
I’ve future plans for this plugin. I shall make an option page, allow admins to upload & choose their very own verification badge, submit the plugin to WordPress plugin directory etc. But that’s in future, who has seen the future?
You must be logged in to post a comment.