In this article, I’m about to show you how actually WordPress works
when we think of adding an author box at the end of each post/page which
further tell the visitors who wrote the corresponding article. In this
way, WordPress gives you very easy way to add contact info within author
box such as Facebook, Twitter, Google+, etc profile links.
By default WP gives you to set up these things i.e, E-mail (required)
Website AIM Yahoo IM Jabber / Google Talk as for the user contact info.
But you can add extra fields in WordPress user profile. You would like
to use this option because we mostly active on Twitter, Facebook, and
Google+ nowadays.
In order to add extra fields in your user profile, just install
Better User Profile Fields plugin and follow the steps below:
1. Once you installed the plugin, it will add the extra fields in the
user profile (Facebook, Twitter, Google+, Deviant Art and Tumblr)
2. Go to
Users > Your Profile and add your social profile links
3. That’s it…
How to use this in Templates for Developers
If you want to make use of these new fields in your template just use
get_author_meta(”). For example, to add the Google+ URL you would use
get_author_meta(‘googleplus’).
0 comments:
Post a Comment