Categories
Trik WordPress

Mengganti Isian User Profil

Pada user profil, ditampilkan data-data MSN, YM, Jabber dan AIM. Tapi data-data itu saat ini kurang begitu terpakai kan? Nah, mari kita ganti saja dengan Facebook, Twitter dan Koprol misalnya.

Caranya sangat gampang. Tinggal masukkan kode ini di file functions.php themes WordPress yang anda pakai sekarang:

function extra_contact_info($contactmethods) {
unset($contactmethods['aim']);
unset($contactmethods['yim']);
unset($contactmethods['jabber']);
$contactmethods['facebook'] = 'Facebook';
$contactmethods['twitter'] = 'Twitter';
$contactmethods['koprol'] = 'Koprol';

return $contactmethods;
}
add_filter('user_contactmethods', 'extra_contact_info');

Kode diatas akan menghilangkan kotak isian untuk aim, ym dan jabber serta menggantinya dengan kotak isian facebook, twitter dan koprol. Untuk menampilkannya di theme, anda tinggal pasang kode ini:

Facebook
Twitter
Koprol

Bagi yang belum tahu bagaimana membuat halaman profil author, mudah saja. Anda tinggal memasukkan sebuah file baru dengan nama author.php di themes yang anda pakai. Contoh isi dan keterangan lainnya bisa dilihat disini:

http://codex.wordpress.org/Author_Templates#Sample_Template_File

Insya Allah kalau sempat nanti kita buat terjemahannya. Ada yang mau bantuin menerjemahkan?

By Lutvi

Bukan Ustadz, bukan Dai apalagi Kyai. Juga bukan guru. Hanya sekedar santri miskin ilmu yang coba mengamalkan 1 ayat warisan dari para ulama. Saat ini diamanahi menjadi admin web WordPress Indonesia

12 replies on “Mengganti Isian User Profil”

I simply want to mention I am just newbie to weblog and certainly enjoyed your web page. Very likely Iā€™m likely to bookmark your website . You really have impressive stories. Bless you for sharing your web-site.

Nice post. I was checking continuously this blog and I’m impressed! Very useful information specifically the last part šŸ™‚ I care for such info much. I was looking for this certain information for a long time. Thank you and good luck.

whoah this weblog is magnificent i really like reading your posts. Keep up the great paintings! You understand, a lot of individuals are searching round for this info, you could help them greatly.

Awsome editorial and right to the point. I don’t know proviso this is correctly the greatest place to solicit but solve you guys have a few view by where to hire a little authority writers? Thank you

It is appropriate time to make some plans for the future and it’s time to be happy. I’ve read this post and if I could I desire to suggest you some interesting things or suggestions. Maybe you could write next articles referring to this article. I desire to read more things about it!

Great goods from you, man. I have understand your stuff previous to and you are just extremely wonderful. I really like what you have acquired here, certainly like what you’re saying and the way in which you say it. You make it enjoyable and you still care for to keep it sensible. I can not wait to read much more from you. This is actually a great site.

Fantastic blog! Do you have any hints for aspiring writers? I’m hoping to start my own site soon but I’m a little lost on everything. Would you advise starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally overwhelmed .. Any tips? Bless you!

Hey There. I found your blog using msn. This is a very well written article. I will be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will certainly return.

Fantastic goods from you, man. I’ve understand your stuff previous to and you’re just extremely great. I actually like what you’ve acquired here, really like what you’re stating and the way in which you say it. You make it enjoyable and you still care for to keep it wise. I can not wait to read far more from you. This is actually a terrific website.

Comments are closed.