Tinye Njikọ Njikọ na WordPress Template gị

ibe edokọbara wordpress

Anyị na-arụ ọrụ na saịtị ndị ahịa taa iji gbakwunye Ihe nyocha iPad ndepụta na saịtị. Kama ịdepụta ha niile na ibe ma ọ bụ na post, anyị kpebiri iwu a peeji nke ndebiri that pulled one link category from WordPress' build in Links ngalaba, a na-akpọ "Nyocha".

Na WordPress API enweworị arụ ọrụ, a na-akpọ 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 ọrụ.

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:

'aha', 'ịtụ' => 'ASC', 'category_name' => 'Nyocha')); // Loop na ibe edokọbara ọ bụla ma gosipụta usoro ọpụpụ a na-emepụta ($ njikọ dị ka $ njikọ) {echo ' link_url.'" target="_blank">'; link_url.'" target="_blank">ikwughachi $ njikọ-> link_name. ' - '; nkuzi mgbamejije $ link-> link_description; nkuzi mgbamejije ' '; }?>

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 ndepụta ndị ahịa anyị, ebe anyi tinyekwara ike dị ndụ thumbnail nke saịtị. Nwere ike ịgbakwunye otu nofollow tags.

Kedu ihe ị chere?

Ebe a na-eji Akismet iji belata spam. Mụta otu esi etinye usoro data gị.