WordPress: Hoʻohui i ka ʻike mea kākau ma Sidebar

wordpress

UPDATE: Ua hoʻomohala wau i kahi Widget Sidebar e hōʻike i ka ʻIkepili Mea kākau.

He mea kupaianaha ka kia o kēia lā na Jon Arnold ma nā ʻōlelo aʻoaʻo no ka hoʻolālā ʻana i kahi pūnaewele, akā ua ʻike wau i ka manaʻo mua e pili ana i ka pou iaʻu. He hōʻailona hōʻailona kēlā e pono ai wau e hoʻolilo i ka ʻike i ka mea kākau i mea kaulana.

ʻAʻole wau i hana i kahi widget no kēia (a kahaha au i ka loaʻa ʻole o kekahi mea ʻē aʻe!), Akā ua hiki iaʻu ke hoʻoponopono i koʻu ʻaoʻao ma kaʻu kumumanaʻo WordPress blog a hoʻohui i kēia code:

E pili ana i ka mea kākau 

Ma kahi ʻaoʻao pou hoʻokahi, ua hoʻohui ʻia kahi ʻaoʻao sidebar i loaʻa kahi kiʻi o ka mea kākau (e hoʻohana ana i gravatar), ko lākou inoa piha, kā lākou ʻaoʻao home a me kā lākou ʻike bio e like me ia i ho'ākāka ʻia ma kā lākou hoʻohana ʻike. Ua pākuʻi wau i kekahi mau papa ʻelua e mālama pono i ka lana ʻana o ka gravatar i ka hema a me ke kiʻekiʻe o ka ʻāpana i kahi kiʻekiʻe iki i ka hanana inā ʻaʻohe ʻike o kahi mea kākau.

get_the_author_meta('leka uila') kiʻi hou i ka leka uila o ka mea kākau a hāʻawi iā ia i ka hana get_avatar. ʻO ka kiʻi_avatar unuhi ka hana i ka leka uila i kahi mea kuhikuhi i hoʻoili ʻia i ka mea lawelawe gravatar e kau i ke kiʻi kūpono. Pono kēia mai kou makemake e hōʻalo i ka hana ʻana i kahi leka uila i loaʻa i ke kumu o ka ʻaoʻao ... makemake nā spammers e ʻohi i nā leka uila.

Loaʻa nā ʻikepili ʻē aʻe i ka hoʻohana wale ʻana the_author_meta 'ike.

6 Comments

  1. 1
  2. 2

    I did notice that my RSS reader still lists you as the author for each post. Any chance of tweaking that so it shows the author's name instead?

    • 3

      Thanks for pointing that out, Ade! That was a Feedburner setting to make the feed compatible with iTunes (which I don't need!). Interestingly, adding the author to the feed may require some development!

  3. 4
  4. 5

    Makemake anei ʻoe e hoʻokipa i kēlā ma wordpress.org i hiki ai iā mākou ke loaʻa nā hoʻohou?

    a ma ke ʻano he nīnau ʻelua: inā makemake wau e hōʻike eg ʻAIM wale nō ke hoʻopiha ʻia, hiki iaʻu ke hoʻohana i nā code like e hana i kēlā a i ʻole e hāʻawi e like me kēia: "AIM:" makemake wau e hōʻike ʻole inā hakahaka ka puka ...

    E hoʻololi paha wau i kāu plugin no kaʻu ʻaoʻao e hōʻike i ka bio a me kahi ʻike hou aʻe: ʻike e like me icq, aim, xfire a pēlā aku.

  5. 6

    Douglas,
    What a terrific idea your widget adding a sidebar gravatar is. (I've got to confess I didn't even know the term gravatar, until I followed your link to find out – thanks). I'm definitely going to install your widget on a site of mine.

    BTW, nui o ka ʻike nui ma kāu pūnaewele, hauʻoli nui wau i ka loaʻa ʻana iaʻu.

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.