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 nke ahụ dọtara otu ụdị njikọ site na WordPress 'wuo Links ngalaba, a na-akpọ "Nyocha".

Na WordPress API enweworị arụ ọrụ, a na-akpọ wp_list_bookmarks, na-edozi ibe edokọbara na usoro ndepụta na-enweghị usoro. Nsogbu bụ na ịnweghị ike ịgbakwunye otu lekwasịrị anya na mkpado arịlịka ime ka njikọ ahụ mepee na taabụ ma ọ bụ windo ọhụrụ. Ya mere… ikwesiri idetu aka gi iji mee nke a. Nwere ike ime nke a na get_bookmarks ọrụ.

Nke mbu, aga m eweghara njikọ ndị ahụ wee nye ha iwu ka ha rịgoro, site na aha, site na njikọ otu Nyocha. Mgbe ahụ, m wepụta HTML iji mepụta ndepụta ahụ:

'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 ' '; }?>

Ugbu a ị nwere ike igbanye ndepụta ọ bụla ị ga - achọ iji ihe ọ bụla ị chọrọ ịme. Anyị ewerela ya gabiga oke na ụlọ ọrụ anyị maka nyocha 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ị.