Iindidi zePosti yesiqhelo eneendidi zesiko

Wordpress

I-WordPress iya kuba liqonga elingabalulekanga kwiinkampani ezininzi, kodwa inkampani ephakathi ayithathi nethuba leqhezu lezakhono. Omnye wabathengi bethu ebefuna ukongeza icandelo lezixhobo kwindawo yabo kodwa angafuni ukuyenza esebenzisa iphepha okanye iiposti zebhlog. Yiyo kanye le nto iWindowsPress ixhasa Iindidi zePosi yesiqhelo ngokuba!

Kule meko, besifuna ukongeza iCandelo leZibonelelo kwenye yeesayithi zabaxumi bethu. Kulula ukongeza ifayile ye- Uhlobo lwePosi yesiqhelo kumxholo wakho weWindowsPress. Wongeza le khowudi ilandelayo usebenzisa umsebenzi irejista_post_type kwimisebenzi yakho.php iphepha:

// Yongeza Izixhobo Uhlobo Lwesithuba Sokongeza_action ('init', 'create_post_type'); umsebenzi dala_post_type () {irejista_post_type ('izixhobo', uluhlu ('iilebheli' => uluhlu ('igama' => __ ('Izixhobo'), 'singular_name' => __ ('Izixhobo'), 'add_new' => __ ('Yongeza eNtsha'), 'add_new_item' => __ ('Yongeza uMthombo oMtsha'), 'edit_item' => __ ('Hlela izixhobo'), 'new_item' => __ ('Isixhobo esitsha'), 'all_items' => __ ('Zonke izibonelelo'), 'view_item' => __ ('Jonga izixhobo'), 'search_items' => __ ('Izixhobo Zokukhangela'), 'not_found' => __ ('Ubuncwane Abufunyanwanga'), ' 'not_found_in_trash' => __ ('Akukho Mithombo kwiNkunkuma'), 'parent_item_colon' => '', 'menu_name' => __ ('Resources')), 'public' => yinyani, 'has_archive' => yinyani, 'rewrite' => uluhlu ('slug' => 'izixhobo'), 'support' => uluhlu ('isihloko', 'umhleli', 'umbhali', 'i-thumbnail', 'excerpt', 'comments'))) ; }

Into enzima ngakumbi ukuyifumana yindlela yokwenza iindidi zesiko ngenxa yakho Uhlobo lwePosi yesiqhelo. Isizathu esinye sokuba kube nzima ukuqonda ukuba ungayenza njani le nto kuba ibizwa ngokuba yirhafu yesiko kwaye isebenzisa indlela irejista_taxonomy isebenze ngokwezifiso. Kule meko, sifuna ukongeza iintlobo zezixhobo ezinjengeeWebinars, iiWhitepapers, njl.njl kumxholo… nantsi enye ikhowudi eyongezelelweyo yefayile yemisebenzi

add_action ('init', 'resource_category_init', 100); // 100 ukuze ke uhlobo lweposi lubhalisiwe umsebenzi resource_category_init () {register_taxonomy ('type', 'resources', array ('labels' => array ('name' => 'Uhlobo lwezixhobo', 'singular_name' => ' Uhlobo lweZibonelelo ',' search_items '=>' Iintlobo zeZibonelelo zoPhando ',' popular_items '=>' Iindidi zoovimba abadumileyo ',' all_items '=>' Zonke iintlobo zoovimba ',' edit_item '=> __ (' Hlela uhlobo lweZibonelelo ') ' 'ubuxoki', 'ilebula' => 'Uhlobo lwezixhobo')); }

Iindidi zePosti yesiqhelo ikwavumela ukuba uyile kugcino kunye namaphepha anganye kwiindidi zakho zePosti yesiqhelo. Khuphela nje ugcino.php kunye neefayile ezizodwa. Qamba kwakhona iikopi zakho nge Uhlobo lwePosi yesiqhelo egameni. Kule meko, loo nto iya kuba yindawo yokugcina izixhobo.php kunye nezixhobo ezizodwa.php. Ngoku ungenza la maphepha ngokwezifiso kodwa unqwenela ukuba iphepha lokujonga libukeke.

2 Comments

  1. 1

    Enye indlela kukusebenzisa iplagi enje ngeNdidi yesiQinisekiso seNdalo okanye iiNdidi.

    Ezi plugins zikwenza ukuba ukongeza ngokulula iibhokisi zeemeta zesiko kunye nokwenza iphepha lesiko kunye neeposti zetemplate.

    • 2

      Kuyinyani kakhulu @ google-d5279c8b66d25549a0ec3c8dd46a3d1a: disqus! Ndiyakunyaniseka ukuba ndiziva ngathi iiplagizi ezimbalwa zongeza itoni yentloko kwibhlog… kwaye ngekhe uhambise umxholo ukusuka kwindawo enye uye kwelandelayo, kuya kufuneka uqiniseke ukuba ususa iiplagi, nazo . Ekuphela kwesizathu sokuba ndisebenze ukufaka imisebenzi eyimfuneko kwiifayile zomxholo.

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.