Nika amandla ukuBhala kunye nokuShicilela ikhonkco kwiWordPress

uGoogle g

Ndihlala ndixelela abantu ukuba ndiza kwabelana ngendlela esidibanisa ngayo ubumbano kwimicrodata ukuvelisa Iziphumo zokukhangela ezityebileyo. Isebenza kakuhle kubaxhasi bethu kwi ukwandisa ii-SERP CTRs zazoNdiye ndacinga ukuba ndiza kuyibhala apha kwiindawo zeWordPress.

Kukho iziqwenga ezibini koku… kwaye ezi zinto zimbini zikho hayi ezinxulumene. Idatha yokubhala ngoku iyaboniswa kwiPhepha leNjini yokuKhangela. Andikaluboni ulwazi lomshicileli lubonisiwe… kodwa ndiqinisekile ukuba izakuba njalo!

Umshicileli

IGoogle Plus ngoku inenkqubo yokuqinisekisa apho ifayile ye- Umvakalisi Indawo inokwalatha kwiphepha labo kuGoogle +. Ngokongeza le khowudi ilandelayo kwimixholo yethu Imisebenzi.php iphepha, sidibanise icandelo kuLawulo lwethu lweWordPress kuseto ngokubanzi apho sinokuncamathisela khona iGoogle + URL yephepha:

sebenza social_settings_api_init () {add_settings_section ('social_setting_section', 'Social Sites on the Web', 'social_setting_section_callback_function', 'general'); add_settings_field ('general_setting_googleplus', 'Google Plus Page', 'general_setting_googleplus_callback_function', 'general', 'social_setting_section'); irejista_ukusetwa ('ngokubanzi', 'jikelele_setting_googleplus'); } ukongeza_ukusebenza ('admin_init', 'social_settings_api_init'); sebenza kuluntu_ukusetwa_candelo_callback_function () {echo ' Eli candelo kulapho ungagcina khona iisayithi zakho zentlalo apho abafundi banokukufumana kwi-Intanethi. '; } umsebenzi general_setting_googleplus_callback_function () {echo '  '; }

Inyathelo elilandelayo kukupapasha ikhonkco elipapashiweyo kwiphepha ngalinye kwindawo engaphandle kwiphepha lakho elinye leposi. Ke, kwifayile yethu okuphezulu.php, songeza le khowudi ilandelayo:

" rel="publisher" />

Umbhali

Ubunikazi bunzulu ngakumbi, ngakumbi ukuba une-blog yababhali abaninzi efana neyethu. Ngokusisiseko, sifuna onke amaphepha ethu ababhali ababhalayo ukubonisa idatha yeprofayile kaGoogle + kwiziphumo zeinjini yokukhangela. Ukufumana le nto, kuye kwafuneka ndiye enkosini ngokwakhe, uJoost de Valk kwaye ndifunde eyakhe rel = "umbhali" post.

Inyathelo lokuqala kukugqitha kuseto lweWordPress kwaye uvumele ii-anchor tags ukuba zipapashwe ngento efanelekileyo ye-rel. Ngaphakathi Imisebenzi.php, yongeza le khowudi ilandelayo:

sebenza yoast_allow_rel () {global $ allowedtags; Iidola ezivunyelwe ['a'] ['rel'] = uluhlu (); } ukongeza_ukusebenza ('wp_loaded', 'yoast_allow_rel');

Inyathelo elilandelayo kukongeza ikhowudi kwi Imisebenzi.php Yongeza umhlaba kwiphepha lakho lomsebenzisi apho ababhali banokugcwalisa khona i-URL yeGoogle +:

sebenza yoast_add_google_profile ($ contactmethods) {// Yongeza iiprofayili zikaGoogle $ iindlela zonxibelelwano ['google_plus_profile'] = 'Google Plus Profile URL'; buyisela iindlela zonxibelelwano zeedola; } ukongeza_filter ('umsebenzisi_contactmethods', 'yoast_add_google_profile', 10, 1);

Ngoku ukuba unentsimi apho, kuya kufuneka wongeze ikhonkco lombhali kwiphepha ngalinye eliza kwalatha kumxholo wombhali wakho, njenge eyodwa.php, Index.php, umbhali.php kwaye yogcino.php. Ngaphakathi kwala maphepha etemplate, bonisa ikhonkco lombhali kunye ne-rel = "umbhali" kwaye eli khonkco kufuneka likhombe lakho umbhali.php iphepha leprofayile:

" rel="author">

Ngaphakathi kwiphepha lakho umbhali.php, uya kufuna ukubonisa ulwazi lweprofayile kunye nekhonkco rel = "me" ekhomba kwiphepha lakho leProfayile kuGoogle:

$ google_plus_profile = fumana_e_ugunyaziso_meta ('google_plus_profile'); ukuba (iGoogle_plus_profile) {echo '  '; }

Udiniwe kanti? Sukuba… inyathelo elilandelayo kukongeza umnikelo kwikhonkco lakho lombhali ngaphakathi kuGoogle Plus:

UGoogle kunye nokuhlela umnikeli weprofayile

Kulungile… ngoku amakhonkco akho ombhali akhomba kwiphepha lakho lombhali, iphepha lakho lombhali lalatha kwiprofayile kaGoogle Plus, iprofayile kaGoogle Plus yalatha kwiphepha lakho. Ngaba uyayibona indlela esiyifumene ngayo isangqa sonke apha? Inyathelo lokugqibela…

Sebenzisa Isixhobo esityebileyo se-snippets kwaye uqinisekise ukuba ii-snippets zakho ezizityebi zisebenza kakuhle! Vavanya indawo yakho yengcambu kunye nephepha lakho elinye leposi.

isityebi snippet tester isiphumo

Ke ngoku faka indawo yakho kwaye uyidubule:
isityebi snippet tester umpapashi weziphumo

Inqaku lokugqibela… konke oku kusebenza kakuhle, kodwa hayi ngalo lonke ixesha. Ngamanye amaxesha ndiye ndiqaphele isixhobo esityebileyo se-snippets esindinika impazamo kwaye ngamanye amaxesha ndibona apho kuvavanywa iimfumba ezityebileyo, kodwa kuthatha iiveki ezimbalwa ukuzibona kwiziphumo zokukhangela. Nokuba yeyiphi indlela, lulungiso olufanelekileyo ukwenza! Gcina ukhumbula ukuba, kuba sikwenzile konke oku ngaphakathi komxholo wethu ukuba umxholo omtsha uya kufuna ukuba siphumeze zonke kwakhona kwakhona!

11 Comments

  1. 1

    Kuyabonakala ukuba umxholo wam wangoku awunayo ifayile yombhali.php. Nangona kunjalo, i-URL yam yombhali iyavela kwaye inikezela kakuhle. Kubonakala ngathi ndiyifumene yonke into emva kwamanyathelo akho, kodwa isixhobo esityebileyo se-snippet sivelise iimpazamo zoku kulandelayo:

    iphepha elipapashiweyo likaGoogle + = https://plus.google.com/118248936539718757580 Impazamo: Eli phepha alibandakanyi uphawu lomshicileli oluqinisekisiweyo. Funda nzulu. Isilumkiso: Zombini i-rel = "umshicileli" kunye ne-rel = "umbhali" zikhona kwiphepha. Kuya kufuneka ubeke rel = "umbhali" kumaphepha omxholo kunye rel = "umshicileli" kwiphepha lakho lasekhaya kuphela (ngaphandle kokuba eli liphepha lasekhaya lesiza sombhali omnye). iprofayile yombhali eqhagamshelwe = http://www.bnpositive.com/blog/author/bnpositive/
    Impazamo: Iphepha leprofayile yombhali alinalo ikhonkco rel = "me" kwiProfayile kaGoogle. Funda nzulu. 

    • 2

      @bnpositive: disqus Ungenza ifayile ye-author.php ngokulula ngokukopa ifayile ye-archive.php kwaye uyiqambe igama kwakhona ku-author.php (ngamanye amaxesha kukho ukucoca okufuneka ukwenze ukukhupha izihloko zamagama, njl.) kodwa yinto efanelekileyo ukuba nephepha lombhali. Ndihlala ndipapasha abantu bio kunye nefoto kwelo phepha.
      Ndiye kwiphepha lakho kuGoogle + kwaye awunalo ikhonkco kwicandelo labanegalelo elalatha kwiphepha lakho lombhali kwi-bnpositive. Kwakhona, ngaba uzama ukwenza ikhonkco lombhali okanye ikhonkco lomshicileli? Iphepha lakho lombhali kwi-bnpositive libonakala linekhonkco lephepha kuGoogle + kuyo. Iphepha lombhali kufuneka likhombe kwiphepha lakho, ikhonkco lomshicileli kufuneka likhombe iphepha lakho kuGoogle +.

      • 3

        Ukusuka kokuqonda kwam ndifuna ikhonkco lika-PUBLISHER kuzo zonke izinto ezingathumeli IPHEPHA lewebhusayithi yam eya kuthi ibhekise kwi-Bnpositive Unxibelelwano kunye noYilo kuGoogle + iphepha. Ke, kuwo onke amaphepha eposi endiwabhalayo, ndifuna ikhonkco le-AUTHOR kula maphepha anokujonga iphepha lam kuGoogle + ngokuchanekileyo?

      • 4
      • 7

        Kulungile, ndifuna iphepha lombhali.php eliphuhlisiweyo, kodwa ndicinga ukuba ndiza kubamba de ndithathe isigqibo sokuba ngowuphi umxholo omtsha endiwukhethayo kule ndawo. Kuvakala ngathi ndifuna ukufumana ixesha kunye nawe kwaye ndikuthengele ikofu kwakamsinya!

  2. 8

    Molo, andiqinisekanga ukuba usayijonga le nto, kodwa -ndifumene iziqwengana zam ezityebileyo zokuba "Iqinisekisiwe: Uphawu lomshicileli luqinisekisiwe kweli phepha." kodwa umfanekiso awubonakali kwisixhobo esityebileyo se-snippet. Umbhali wam usebenza kakuhle kwikhonkco lezithuba, kodwa kwiphepha lam lasekhaya akukho mfanekiso kwaye ithi nje iqinisekisiwe. Uyazi ukuba kutheni kunokuba njalo?

    • 9

      @ twitter-509747237: disqus ukuba uzitshintshile nje, kuya kufuneka ubanike iiveki ezimbalwa ukuze ubonakale. Kananjalo, sibabonile bevela kwaye belahleka kube kanye ngexeshana. Kubonakala ngathi ngumsebenzi oqhubekayo kunye noGoogle.

      • 10

        Enkosi ngempendulo know Ndiyazi ukuba kuzakuthatha ixesha ukubonakala kwi-SERPS, kodwa ndinexhala lokuba ayibonisi kwimbonakalo yesiXhobo sokuVavanya esiTyebileyo .. kwisifundo sakho ungabona ilogo yenkampani yakho isixhobo sovavanyo kwaye andisiboni, kuphela ukuba iqinisekisiwe. Ndicinga ukuba ndiza kuyilinda iiveki ezimbalwa ukuze ndibone ukuba ndingayifumana na kwi-RSTT, kodwa ukuba ayinakuze yenzeke, andazi ukuba ndaphazama phi (hayi ukungxamela ukuba ibonise phezulu kwi-SERPS njengoko kwathatha ukubhalwa kwam malunga neeveki ezi-3 zokwenza oko, kodwa zihlala zibonisa kwangoko kwisixhobo sovavanyo). Enkosi kwakhona ngempendulo.

        • 11

          @ twitter-509747237: disqus Inomdla! Kubonakala ngathi bayisusile ikhonkco lomshicileli ekubonakaliseni ilogo. Iyanuka !!! Bendinethemba lokuba baya kuqala ukuyipapasha kwi-SERP. Ikhonkco lakho lombhali lilungile, nangona!

Ingaba ucinga ntoni?

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