Whakahohea te Kaituhi me te Hononga Tuku i te WordPress

google g

Ka kii tonu ahau ki nga taangata ka tohaina e taatau te whakauru i te microdata kaituhi hei whakaputa hua rapunga taonga. He pai te mahi ma o taatau kaihoko i roto te whakanui ake i a raatau CTR SERP) na i whakaaro ahau ka tuhia e au ki konei mo nga papaanga WordPress.

E rua nga waahanga o tenei… ko nga waahanga e rua e kore hononga. Kei te whakaatuhia inaianei nga tuhinga a nga Kaituhi ki nga Wharangi Hua a Nga Miihini Rapu. Kaore ano au kia kite i nga korero a nga kaiwhakaputa e whakaatuhia ana… engari e mohio ana au kaatahi!

kaiwhakaputa

Kei a Google Plus inaianei he punaha whakaū a kaiwhakaputa o tetahi papaanga ka tohu ki to raatau whaarangi Google+. Ma te taapiri i nga tohu e whai ake nei ki a maatau kaupapa functions.php whaarangi, kua taapirihia e maatau he waahanga ki a maatau Whakahaerenga Whakatairanga i nga waahanga whanui ka taea ai e matou te whakapiri i ta maatau Wharangi Google+ URL:

mahi social_settings_api_init () {add_settings_section ('social_setting_section', 'Social Site on the Web', 'social_setting_section_callback_unction', 'general'); add_settings_field ('general_setting_googleplus', 'Wharangi Google Plus', 'general_setting_googleplus_callback_unction', 'general', 'social_setting_section'); register_setting ('whanui', 'general_setting_googleplus'); } add_action ('admin_init', 'social_settings_api_init'); mahi pāpori_huringa_whakaaro_whakarewaka_whakamahi () {echo ' Ko tenei waahanga ka taea e koe te penapena i o papanga hapori ka kitea koe e nga kaipānui i runga i te Ipurangi. '; } mahi general_setting_googleplus_callback_unction () {echo '  '; }

Ko te mahi ka whai ake ko te whakaputa i te hono whakaputa ki ia whaarangi o te papaanga i waho atu o o whaarangi panui rangitaki. Na, i roto i ta maatau header.php, ka taapirihia e matou te waehere e whai ake nei:

" rel="publisher" />

Tuhi

He iti ake te hohonu o te Kaituhi, ina koa he tuhinga kaituhi-maha to maatau. Ko te tikanga, e hiahia ana maatau katoa o a maatau whaarangi ka tuhia e nga kaituhi te whakaatu i o raatau tuhinga tohu Google+ ki nga hua miihini rapu. Ki te heke iho tenei, me haere au ki te rangatira, ki a Joost de Valk ka panui i ana korero rel = "kaituhi" Tuhinga.

Ko te mahi tuatahi ko te whakakore i nga tautuhinga WordPress ka tuku i nga tohu punga kia taatatia me te waahanga rel tika. I Roto I functions.php, taapirihia te waehere e whai ake nei:

mahi yoast_allow_rel () {ao $ whakaaetia ana; $ allowtags ['a'] ['rel'] = raupapa (); } add_action ('wp_loaded', 'yoast_allow_rel');

Ko te mahi ka whai ake ko te taapiri i te waehere ki functions.php ka taapirihia he waahanga ki to whaarangi Kaiwhakamahi Kaiwhakamahi ka taea e nga kaituhi te whakakii i to raatau URL Google+:

function yoast_add_google_profile ($ contactmethods) {// Add Google Profiles $ contactmethods ['google_plus_profile'] = 'Google Plus Profile URL'; whakahoki $ contactmethods; } add_filter ('user_contactmethods', 'yoast_add_google_profile', 10, 1);

Na kua taea e koe te mara ki reira, me taapiri e koe he hononga kaituhi ki ia whaarangi ka tohu ki o tuhinga a te kaituhi, penei takakau.php, log.php, kaituhi.php a pūranga.php. I roto i aua whaarangi tauira, whakaatuhia te hono a te kaituhi me te rel = ”kaituhi” ana me tohu te hono ki to kaituhi.php whaarangi kōtaha:

" rel="author">

I roto i to whaarangi kaituhi.php, ka hiahia koe ki te whakaatu i nga korero taapiri me te hononga rel = "me" e tohu ana ki to whaarangi Google Profile:

$ google_plus_profile = get_the_author_meta ('google_plus_profile'); mena ($ google_plus_profile) {echo '  '; }

Kua hoha koe? Kaua e… taahiraa e whai ake nei ko te taapiri i tetahi hononga kaitoha ki to whaarangi kaituhi o Google Plus:

google me te kaituku tohu tohu

Ok… inaianei ko o hononga kaituhi kei te tohu ki to whaarangi kaituhi, kei te tohu to whaarangi kaituhi ki to tohu Google Plus, kei te tohu to tohu Google Plus ki to whaarangi kaituhi. Kei te kite koe i te aha i hipokina ai te porowhita ki konei? Kotahi te hikoi whakamutunga…

Whakamahia te taonga pakipaki taonga me te arotake ano ka pai te mahi o nga waahanga taonga! Whakamatauhia ki to rohe pakiaka me o whaarangi pou whakairinga.

hua whakamatau pakipaki taonga

Tena, hoatu ki to rohe ka kopere:
kaiwhakawhiwhi hua kairangahau hua

Panui whakamutunga… he pai te mahi katoa, engari kaore i nga waa katoa. I etahi wa ka kite ahau i te taputapu raupatu taonga ka he mai he wa ano ka kite au i te waahi e pai ana te whakamatautau i nga riipene taonga, engari he wiki ruarua nei ka kitea au i nga hua o te rapu Ahakoa te aha, he whakarereketanga kia tika te mahi! Kia maumahara, mai i te mea i mahi tatou i enei mea katoa i roto i ta maatau kaupapa ka hiahia tetahi kaupapa hou ki a maatau ki te whakamahi katoa i runga ano!

11 Comments

  1. 1

    Te ahua nei kaore he kaupapa a te kaituhi.php i taku kaupapa o naianei. Heoi, ka puta mai taku kaituhi URL ka pai te utu. Ko te ahua nei kua whiwhi au i nga mea katoa kua whakauruhia mai i muri i o hikoinga, engari na te taputapu putunga taonga i whakaputa he o enei e whai ake nei:

    kaiwhakaputa hono wharangi Google+ = https://plus.google.com/118248936539718757580 Hapa: Kaore tenei whaarangi i te whakauru i nga tohu kaiwhakaputa kua manatoko. Ako atu. Whakatūpato: Ko te rel = "kaiwhakaputa" me te rel = "kaituhi" kei runga i te whaarangi. Me waiho e koe te rel = "kaituhi" ki nga whaarangi ihirangi me te rel = "kaiwhakaputa" ki to whaarangi kaainga (engari mena koinei te whaarangi kaainga o te papaanga kaituhi kotahi). kaituhi kaituhi hono = http://www.bnpositive.com/blog/author/bnpositive/
    Hapa: Ko te whaarangi o te kaituhi kaore he hononga rel = "me" ki tetahi Whakaahua o Google. Ako atu. 

    • 2

      @bnpositive: disqus Ka taea e koe te hanga i tetahi konae pukapuka kaituhi.php kia maamaa ma te kape i te konae.php ma te whakaingoa ano ki te kaituhi.php (i etahi wa ka mahi tetahi horoi ki te tango i nga upoko ingoa waahanga, me etahi atu) engari he mea pai ki te whai i te whaarangi kaituhi. Ka whakaputahia e au te koiora me te whakaahua o te iwi i runga i taua whaarangi.
      I haere ahau ki to whaarangi Google+ kaore o hononga i te waahanga takoha e tohu ana ki to whaarangi kaituhi i te bnpositive. Ano hoki, kei te ngana koe ki te mahi i tetahi hono kaituhi, i tetahi hononga kaiwhakaputa ranei? Ko to whaarangi kaituhi kei runga i te bnpositive he hononga hono ki te whaarangi Google+. Ko te whaarangi kaituhi me tohu ki to whaarangi ake, me hono te hono kaiwhakaputa ki to whaarangi Google+.

      • 3

        Mai i taku maarama e hiahia ana ahau ki tetahi hononga PAIRANGI i runga i nga PANI kore-whakairi katoa mo taku paetukutuku ka ahu atu ki te Whakaputanga Bnpositive Whakapaipai me te Wharangi Google+ Hoahoa. Na, mo nga whaarangi whakairinga katoa ka tuhia e au, e hiahia ana ahau kia hono te AUTHOR ki runga i nga whaarangi e tohu tika ana i taku Wharangi Google+ ake?

      • 4
      • 7

        Kaati, me kii e au he wharangi kaituhi.php, engari kei te whakaaro ahau ka puritia e au kia tae ra ano ki taku whakatau he kaupapa hou taku e kowhiri ana mo te papaanga. Te ahua kei te hiahia ahau kia noho wa ki a koe me te hoko kai kawhe a koe tata tonu nei!

  2. 8

    Kia ora, kaore koe i te mohio kei te tirotirohia e koe tenei, engari - I kii mai i aku pepa tino nui ki te kii "Kua Whakamanahia: Kua whakatutukihia te tohu Kaiwhakaputa mo tenei whaarangi." engari ko te ahua kaore i te whakaatuhia mai i roto i te taonga taonga maakete. He pai te mahi a taku kaituhi i runga i nga hononga whakairinga, engari mo taku whaarangi kaainga kaore he ahua a he kii noa kua whakamanahia. Kei te mohio koe he aha ai?

    • 9

      @ twitter-509747237: disqus mena ka whakarereke koe i a raatau, me hoatu e koe ki a raatau etahi wiki kia puta ake. Ano hoki, kua kite taatau i a raatau e whakaatu ana ka ngaro i etahi waa. Te ahua nei he mahi kei te haere tonu me Google.

      • 10

        Mauruuru mo te whakautu te taputapu whakamatautau a kaore au i te kite, engari kua whakamanahia. Te mana'o nei au ka tatari au mo etahi wiki e rua kia kite mena ka taea e au te whakaatu ki te RSTT, engari mena kaore, kaore au e mohio i hea au i he ai (kaua e tere ki te whakaatu i roto i te SERPS i te mea kua roa taku kaituhi mo te 3 wiki mo tera, engari i nga wa katoa ka puta tonu mai i te taputapu whakamatautau). Nga mihi ano mo nga urupare.

        • 11

          @ twitter-509747237: disqus He whakamere! Te ahua i tangohia e raatau te waahanga hono o te kaiwhakaputa mai i te whakaatu i te tohu. E hongi ana !!! I tumanako ahau ka tiimata ta raatau whakaputa i te SERP. He pai te hono o to kaituhi, ahakoa!

He aha koutou whakaaro?

Whakamahia ai e tenei pae i te Akismet hei whakaiti i te mokowhiti. Akohia te tukatuka o to raraunga korero.