Enable Marubuci da Haɗin Haɗi a cikin WordPress

google g ku

Ina ci gaba da gaya wa jama'a Zan raba yadda muke haɗawa da mawallafa microdata don samarwa sakamakon bincike mai tarin yawa. Yana aiki da kyau ga abokan cinikinmu a ciki kara SERP CTRs ɗin su) Don haka na ga zan rubuta shi anan don shafukan WordPress.

Wannan akwai bangarori biyu kuma abubuwa biyu suna ba mai alaƙa. Ana nuna bayanan marubuta a cikin Shafukan Sakamakon Injin Bincike. Ban ga bayanin mai wallafa ba tukuna… amma na tabbata zai kasance!

Publisher

Google Plus yanzu yana da tsarin tabbatarwa inda a m na wani shafin zai iya nunawa shafin su na Google+. Ta hanyar ƙara lambar mai zuwa a cikin taken taken mu functions.php Shafi, mun ƙara wani ɓangare zuwa saitunan mu na Gudanarwa na Gudanarwa na WordPress inda zamu iya liƙa URL ɗinmu na URL:

aiki 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'); register_setting ('general', 'general_setting_googleplus'); } add_action ('admin_init', 'social_settings_api_init'); aiki social_setting_section_callback_function () {amsa kuwwa ' Wannan sashin shine inda zaka iya ajiye shafukanka na sada zumunta inda masu karatu zasu iya nemo ka a Intanet. '; } aikin general_setting_googleplus_callback_function () {amsa kuwwa '  '; }

Mataki na gaba shine buga hanyar haɗin bugawa a kowane shafi akan shafin a waje da shafukan gidan yanar gizanka. Don haka, a cikin mu header.php, mun ƙara lambar mai zuwa:

" rel="publisher" />

mawallafi

Marubuci ɗan ƙarami ne sosai, musamman idan kuna da marubuta da yawa kamar namu. Ainihin, muna son duk shafukanmu waɗanda marubuta suka rubuta don nuna bayanan martaba na Google+ a cikin sakamakon injin binciken. Don samun wannan, dole ne in je wurin maigidan da kansa, Joost de Valk kuma in karanta shi rel = ”mawallafi” post.

Mataki na farko shine don shawo kan saitunan WordPress kuma ba da damar buga alamun anga tare da abin da ya dace. A ciki functions.php, ƙara lambar mai zuwa:

aiki yoast_allow_rel () {duniya ta yarda $; $ allowtags ['a'] ['rel'] = tsararru (); } add_action ('wp_loaded', 'yoast_allow_rel');

Mataki na gaba shine ƙara lambar zuwa functions.php wannan yana ƙara filin zuwa shafin Bayanan Mai amfani inda marubutan zasu iya cika URL ɗin Google+:

aiki yoast_add_google_profile ($ lamba hanyoyin) {// Addara bayanan martabar Google $ hanyoyin hanyoyin tuntuɓar ['google_plus_profile'] = 'Adireshin Bayanin Google Plus URL'; dawo da hanyoyin lamba; } add_filter ('user_contactmethods', 'yoast_add_google_profile', 10, 1);

Yanzu tunda kun sami filin a ciki, kuna da ƙara mahaɗin marubuci zuwa kowane shafin da zai nuna abubuwan marubucinku, kamar guda.php, index.php, marubuta da kuma Taskar.php. A cikin waɗancan shafuka masu samfuri, nuna mahaɗin marubucin tare da rel = ”marubucin” kuma mahaɗin ya kamata ya nuna marubuta Shafin shafi:

" rel="author">

A cikin shafin author.php naka, za ka so ka nuna bayanan martaba tare da hanyar rel = ”ni” wanda ke nuni zuwa shafin Shafin na Google:

$ google_plus_profile = get_the_author_meta ('google_plus_profile'); idan ($ google_plus_profile) {amsa kuwwa '  '; }

Kun gaji tukuna? Karka kasance… mataki na gaba shine a zahiri ƙara mahaɗin bayar da gudummawa ga shafin marubucinka a cikin Google Plus:

google da gyara mai ba da gudummawar bayanan martaba

Ok… yanzu mahaɗan marubutanku suna nuna shafin marubucinku, shafin marubucinku yana nuni ga bayananku na Google Plus, bayananku na Google Plus yana nuna shafin marubucinku. Kuna ganin yadda muka rufe duka da'irar a nan? Mataki na karshe…

Yi amfani da kayan aikin snippets masu arziki kuma a zahiri tabbatar cewa wadatattun kayan aikinku suna aiki lafiya! Gwada shi a kan tushen yankinku da shafukan gidanku guda.

sakamako mai gwada yankakken yanki

Yanzu kuma sanya yankinku ku bashi harbi:
mai wadataccen ɗan gwajin sakamakon sakamako

Bayanin ƙarshe… duk wannan yana da kyau ƙwarai, amma ba kowane lokaci bane. Wani lokaci nakan lura da kayan aikin snippets masu arziki suna bani kuskure kuma wasu lokuta nakan ga inda snippets masu arziki suke gwada lafiya, amma yana ɗaukar weeksan makonni kaɗan kafin a gansu a cikin sakamakon bincike. Ko ta yaya, gyare-gyare ne da ya cancanci a yi! Ka tuna cewa, tun da mun yi duk wannan a cikin takenmu cewa sabon jigo zai buƙaci mu aiwatar da shi dukan sake!

11 Comments

  1. 1

    A bayyane jigo na na yanzu bashi da fayil na author.php. Duk da haka, URL na marubucina ya bayyana kuma yana da kyau. Ina da alama na sami komai an girka ta bin matakanku, amma kayan aikin ɓoye sun samar da kurakurai na masu zuwa:

    Publisherlinked Google+ page = https://plus.google.com/118248936539718757580Mai Kuskure: Wannan shafin bai hada da ingantaccen alamar bugawa ba. Moreara koyo. Gargadi: Dukansu rel = ”mai bugawa” da rel = ”marubuci” suna nan akan shafin. Ya kamata ku sanya rel = "marubucin" akan shafukan abun ciki kuma rel = "mai bugawa" akan shafin gidanku kawai (sai dai idan wannan shafin shafin shafin marubuci ne). bayanin marubucin mai alaƙa da marubucin = http://www.bnpositive.com/blog/author/bnpositive/
    Kuskure: Shafin bayanin marubuta bashi da hanyar rel = ”ni” zuwa Profile na Google. Moreara koyo. 

    • 2

      @bnpositive: disqus Kuna iya yin fayil na author.php a sauƙaƙe ta hanyar kwafin fayil ɗin archive.php kuma sake canza shi zuwa author.php (wani lokacin akwai tsaftacewa da za a yi don cire taken sunan rukuni, da sauransu) amma yana da kyau samun shafin marubuci Yawancin lokaci nakan buga bayanan mutane da hoto a wannan shafin.
      Na je shafinka na Google+ kuma ba ka da hanyar haɗi a cikin ɓangaren mai ba da gudummawa wanda ke nuni zuwa shafin marubucinka a lokacin da ya dace. Hakanan, kuna ƙoƙarin yin mahaɗin marubuci ko mahaɗin mai bugawa? Shafin marubucinku a kan kyauta yana da alamar haɗin shafin Google+ akan shi. Shafin marubuci ya kamata ya nuna shafinka na sirri, mahaɗin mai wallafa ya nuna shafin Google+.

      • 3

        Daga fahimtata ina son mahada mai bugawa a kan dukkan PAGES da ba post ba na gidan yanar gizan na wanda zai kai tsaye zuwa Bnpositive Communication and Design Google+ Page. Bayan haka, don duk shafukan da zan rubuta, Ina son haɗin MARUBUCI akan waɗancan shafukan da zai yi daidai da Shafin Google+ na kaina daidai?

      • 4

        Na kawai duba shafin kaina na Google+ kuma yana ba da hanyar haɗin mai ba da gudummawa ga shafin marubucina a kan shafin yanar gizo. Shin yakamata nayi irin wannan a Shafin Google+ kamar yadda nake bugawa?

      • 7

        Yayi, Ina buƙatar samun ingantaccen shafi na author.php, amma ina tunanin zan dakata har sai na yanke shawarar wane sabon taken da zan zaba ga shafin. Sauti kamar Ina buƙatar samun ɗan lokaci tare da ku kuma in saya muku kofi nan da nan!

  2. 8

    Barka dai, ban tabbata ba idan har yanzu kuna duba wannan, amma - Na sami snippets na na arziki na ce "An Tabbatar: An tabbatar da alamar mai bugawa a wannan shafin." amma hoton baya nunawa a cikin kayan aikin snippet mai wadata. Marubucina yana aiki sosai akan hanyar haɗin gidan waya, amma don shafin gida babu hoto kuma kawai yana cewa an tabbatar dashi. Shin kun san dalilin da yasa hakan?

    • 9

      @ twitter-509747237: disqus idan kawai ka canza su, zaka basu yan makwanni kadan su bayyana. Hakanan, mun ga sun nuna kuma sun ɓace lokaci ɗaya. Ya bayyana cewa aiki ne mai gudana tare da Google.

      • 10

        Godiya ga amsa 🙂 Na san zai ɗauki ɗan lokaci kafin a nuna a cikin SERPS, amma na damu da cewa ba a nunawa a cikin samfoti na Kayan Gwajin Snippet mai Arziki ba .. a cikin koyarwar ku zaku iya ganin tambarin kamfanin ku a kayan gwaji kuma ban ganshi ba, kawai an tabbatar dashi. Ina tsammanin zan jira shi har tsawon makonni biyu don ganin ko zan iya samun shi don nunawa a cikin RSTT, amma idan hakan ba zai taɓa faruwa ba, to ban san inda na kuskure ba (ba cikin garaje don ya nuna ba a cikin SERPS yayin da ya ɗauki marubuta na game da makonni 3 don haka, amma koyaushe yana bayyana nan da nan a cikin kayan aikin gwaji). Godiya sake ga ra'ayi.

        • 11

          @ twitter-509747237: disqus Abin sha'awa! Ya bayyana cewa sun cire alamar mahaɗin daga nuna alamar. Wannan yana wari !!! Ina fatan za su fara buga wannan a cikin SERP. Mahaɗin marubucinku yana da kyau a tafi, kodayake!

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.