E hoʻohui i kahi ʻaoʻao loulou i kāu anakuhi WordPress

papa inoa lepe puke

Ke hana nei mākou ma kahi pūnaewele mea kūʻai aku i kēia lā e hoʻohui i iPad Cover Review papa inoa i ka pūnaewele. Ma mua o ka helu ʻana iā lākou āpau i kahi ʻaoʻao a i ʻole kahi pou, ua hoʻoholo mākou e kūkulu i ʻaoʻao template that pulled one link category from WordPress' build in loulou paukū, i kapa ʻia ʻo "Loiloi".

Ka Pūnaewele API ua kūkulu ʻia i kahi hana, i kapa ʻia wp_list_bookmarks, that formats the bookmarks out in an unordered list format. The problem is that you can't add a target to the anchor tag to make the links open in a new tab or window. So… you need to write your own loop to make that happen. You can do this with the get_bookmarks hana.

First, I'm going to capture the links into an array and order them ascending, by name, directly from the Reviews link category. Then I output the HTML to produce the list:

'inoa', 'order' => 'ASC', 'kategorya_name' => 'Nā Manaʻo')); // Loop ma o kēlā me kēia lepe puke a hōʻike i ka format output mua i hōʻano ʻia ($ loulou me $ link) {echo ' link_url.'" target="_blank">'; link_url.'" target="_blank">echo $ link-> link_name. ' - '; echo $ link-> link_description; 'ōlelo' '; }?>

Now you can generate the list however you would like with whatever styling you'd like. We've taken it to the extreme on our corporate site for reviewing kā mākou papa inoa mea kūʻai aku, kahi a mākou i hoʻohui pū ai nā kiʻi manamana nui ola o nā pūnaewele. Hiki iā ʻoe ke hoʻohui a noho noho Tags.

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.