Cia Siv Kev Sau Ntawv thiab Tshaj Tawm Txuas Lus hauv WordPress

google g

Kuv nco qhia folks Kuv xav qhia li cas peb nyob nraum kev sau ua ke microdata los ua nrhiav tshwm sim nplua nuj snippetsCov. Nws tau ua haujlwm zoo rau peb cov neeg siv khoom hauv nce lawv cov SERP CTRs) yog li kuv suav hais tias Kuv yuav teev nws ntawm no rau WordPress chaw.

Muaj ob daim rau qhov no… thiab ob lub ntsiab yog tsis cuam ​​tshuam. Cov ntaub ntawv sau txog kab lus tam sim no tau tshwm sim hauv Tshawb Lub Ntsiab Tshawb Nrhiav Cov Ncauj Lus. Kuv tsis tau pom dua cov lus tshaj tawm cov lus no tsis tau ... tab sis kuv paub tseeb tias nws yuav yog!

Publisher

Tam sim no Google Plus muaj daim ntawv pov thawj tseeb qhov twg a publisher ntawm ib tus xaib tuaj yeem taw rau lawv nplooj ntawv Google+. Los ntawm kev ntxiv cov cai hauv qab no hauv peb cov ntsiab lus functions.php nplooj ntawv, peb tau ntxiv ib ntu rau peb WordPress Cov chaw tswj hwm qhov chaw dav dav uas peb tuaj yeem rub peb tus Google+ Nplooj Ntawv URL:

ua haujlwm social_settings_api_init () {add_settings_section ('social_setting_section', 'Social sites hauv Web', 'social_setting_section_callback_function', 'general'); add_settings_field ('general_setting_googleplus', 'Google Ntxiv Nplooj', 'general_setting_googleplus_callback_function', 'dav dav', 'social_setting_section'); register_setting ('hais txog', 'general_setting_googleplus'); } ntxiv_action ('admin_init', 'social_settings_api_init'); muaj nuj nqi social_setting_section_callback_function () {ncha ' Seem no yog qhov chaw koj tuaj yeem txuag koj lub chaw sib tham uas cov neeg nyeem tuaj yeem pom koj hauv Is Taws Nem. '; } ua haujlwm general_setting_googleplus_callback_function () {ncha '  '; }

Cov kauj ruam tom ntej yog los txhawm rau tshaj tawm cov ntawv tshaj tawm ntawm txhua nplooj ntawm lub vev xaib sab nraud ntawm koj ib nplooj ntawv blog. Yog li, hauv peb header.php, peb ntxiv cov lej hauv qab no:

" rel="publisher" />

Kev Sau Ntawv

Kev Sau Txoj Cai yog me ntsis ntxiv qhov tseeb, tshwj xeeb yog tias koj muaj ntau tus kws sau ntawv blog zoo li peb li. Cia li, peb xav kom tag nrho peb cov nplooj ntawv uas cov sau sau los qhia lawv cov ntaub ntawv Google+ profile hauv kev tshawb nrhiav cov txiaj ntsig ntawm lub tshuab. Txhawm rau kom cia qhov no poob, Kuv yuav tsum mus rau tus tswv nws tus kheej, Joost de Valk thiab nyeem txog nws rel = ”sau” ncej.

Thawj kauj ruam yog los hla WordPress chaw thiab cia cov cim npe thauj tog rau nkoj nrog cov khoom sib haum uas tsim nyog. Hauv functions.php, ntxiv cov cai hauv qab no:

muaj nuj nqi yoast_allow_rel () {thoob ntiaj teb $ allowtags; $ allowtags ['a'] ['rel'] = array (); } add_action ('wp_loaded', 'yoast_allow_rel');

Cov kauj ruam tom ntej yog ntxiv cov lej rau functions.php uas ntxiv ib daim teb rau koj Tus Neeg Siv Ntaub Ntawv nplooj ntawv uas cov sau phau ntawv tuaj yeem sau lawv qhov Google+ URL:

muaj nuj nqi yoast_add_google_profile ($ contactmethods) {// Ntxiv Google Profiles $ contactmethods ['google_plus_profile'] = 'Google Ntxiv Profile URL'; xa rov qab $ contactmethods; } ntxiv_filter ('user_contactmethods', 'yoast_add_google_profile', 10, 1);

Tam sim no koj tau txais daim teb nyob rau ntawd, koj yuav tsum ntxiv tus sau txuas rau txhua nplooj ntawv uas yuav taw rau koj cov ntsiab lus sau, zoo li ib leeg.php, index.php, Author.php thiab archive.phpCov. Nyob rau hauv cov nplooj ntawv template, tso saib tus sau txuas nrog rau tus rel = ”sau” thiab qhov txuas ntawd yuav tsum taw rau koj Author.php cov nplooj ntawv profile:

" rel="author">

Nyob rau hauv koj tus author.php nplooj ntawv, koj yuav xav tso cov ntaub ntawv qhia txog tus kheej nrog rau tus txuas = "kuv" uas txuas rau koj nplooj ntawv Google Profile:

$ google_plus_profile = tau_the_author_meta ('google_plus_profile'); yog ($ google_plus_profile) {ncha ' '; }

Koj nkees tseem? Tsis txhob ua… kauj ruam tom ntej yog los ntxiv ib qho kev pab txhawb txuas rov qab rau koj nplooj ntawv nplooj ntawv hauv Google Plus:

google ntxiv rau kev hloov cov profile

Ok… tam sim no koj tus kws sau txuas mus rau nplooj ntawv sau koj tus kheej, koj nplooj ntawv sau yog taw rau koj Google Plus profile, koj tus Google Plus profile yog taw rau koj nplooj sau. Koj puas pom li cas peb tau txais tag nrho lub voj voos them nyob ntawm no? Ib kauj ruam kawg…

siv cov nplua nuj cuab noog cuab tam thiab ua tau pov thawj tias koj cov snippets nplua nuj ua haujlwm tsis tau! Ntsuam xyuas nws ntawm koj tus cag ntoo thiab koj cov nplooj ntawv luam tawm tshiab.

nplua nuj snippet tester raug

Thiab tam sim no muab tso rau hauv koj tus sau thiab muab nws txhaj tshuaj:
nplua nuj snippet tester tshaj tawm

Daim ntawv kawg… txhua yam ntawm no ua haujlwm zoo nkauj, tab sis tsis yog txhua lub sijhawm. Qee lub sij hawm kuv pom cov cuab yeej nplua nuj snippets ua rau kuv yuam kev thiab lwm lub sijhawm kuv pom qhov twg nplua nuj snippets sim zoo, tab sis nws siv ob peb lub lis piam los pom lawv hauv cov txiaj ntsig tshawb. Ua li cas, nws yog kev hloov kho tsim nyog tsim nyog! Nco ntsoov tias, txij li peb tau ua txhua yam ntawm qhov no hauv peb lub ntsiab lus tias lub ntsiab lus tshiab yuav xav kom peb siv nws tag nrho cov rov ua dua!

11 Comments

  1. 1

    Thaj kuv lub ntsiab tam sim no tsis muaj ib tus neeg sau ntawv.php. Tseem, kuv tus sau URL tshwm sim thiab ua haujlwm zoo. Kuv zoo li tau pom txhua yam ntsia ua raws li koj cov kauj ruam, tab sis tus nplua nuj snippet twj ua yuam kev ntawm cov hauv qab no:

    Publishered Google+ page = https://plus.google.com/118248936539718757580Error: Nplooj ntawv no tsis suav nrog tus luam tawm uas tau kuaj xyuas. Moog kawm ntawv ntxiv. Ceeb Toom: Ob tus uas cia siab rau = "tus tshaj tawm" thiab tus rel = "tus sau" muaj nyob rau ntawm nplooj ntawv. Koj yuav tsum tso rel = "tus sau" rau ntawm nplooj ntawv nplooj thiab rel = "tus tshaj tawm" rau koj lub tsev nkaus xwb (tshwj tsis yog qhov no yog lub tsev ntawm tus sau tus xaib xwb). ntawv tso cai tus sau profile = http://www.bnpositive.com/blog/author/bnpositive/
    Yuam Kev: Tus sau daim nplooj tsis muaj rel = ”kuv” txuas mus rau Google Profile. Moog kawm ntawv ntxiv. 

    • 2

      @bnpositive: disqus Koj tuaj yeem ua tus sau.php ua ntaub ntawv yooj yim los ntawm kev luam ntawv archive.php thiab hloov nws rau tus neeg sau.php (qee zaum muaj qee qhov kev nyiam huv los ua kom rub tawm cov npe qeb npe, thiab lwm yam) tab sis nws yog lub tswv yim zoo kom muaj nplooj ntawv sau. Kuv ib txwm luam tawm folks bio thiab yees duab ntawm nplooj ntawv ntawd.
      Kuv tau mus rau koj lub Google+ nplooj ntawv thiab koj tsis muaj qhov txuas hauv ntu txuas ntxiv uas taw rau koj nplooj ntawv sau ntawm bnpositive. Tsis tas li, koj tseem tabtom sim ua tus sau txuas lossis tus tshaj tawm txuas lus? Koj nplooj ntawv sau ntawm bnpositive zoo li muaj Google+ nplooj ntawv txuas rau nws. Ib nplooj ntawv sau yuav tsum taw rau koj tus kheej nplooj ntawv, tus tshaj tawm txuas xov xwm yuav tsum taw rau koj nplooj ntawv Google+.

      • 3

        Ntawm kuv txoj kev nkag siab Kuv xav tau PUBLISHER link rau tag nrho cov ntawv uas tsis yog PAGES rau kuv lub vev xaib uas yuav coj ncaj qha rau Bnpositive Kev Sib Txuas Lus thiab Tsim Google+ Nplooj Ntawv. Tom qab ntawd, rau tag nrho cov nplooj ntawv tshaj tawm uas kuv sau, Kuv xav tau AUTHOR txuas ntawm cov nplooj ntawv uas yuav siv kuv tus kheej Google+ Nplooj Ntawv puas raug?

      • 4

        Kuv tsuas yog saib ntawm kuv tus kheej nplooj ntawv Google+ thiab nws tau muab cov kab lus txhawb rau kuv nplooj ntawv sau ntawm kuv cov blog. Kuv puas yuav tsum tau ua qhov zoo ib yam ntawm kuv tus Google+ Nplooj ntawv ua tus tshaj tawm?

      • 7

        Okay, Kuv xav tau ib tus neeg sau.php nplooj tsim, tab sis kuv xav tias kuv yuav tuav kom txog thaum kuv txiav txim siab seb cov ntsiab lus tshiab uas kuv yuav tau xaiv rau lub xaib. Suab zoo li kuv xav tau qee lub sijhawm nrog koj thiab yuav koj qee yam kas fes sai sai!

  2. 8

    Nyob zoo, tsis paub tseeb yog tias koj tseem tab tom kuaj xyuas qhov no, tab sis - Kuv tau txais kuv cov ntawv nplua nuj me me los hais tias “Muaj tseeb: Tus luam tawm luam tawm tau txheeb xyuas qhov tseeb rau nplooj ntawv no.” tab sis cov duab tsis qhia nyob rau hauv lub cuab yeej nplua nuj snippet. Kuv tus sau ntawv ua haujlwm zoo heev ntawm kev xa xov txuas, tab sis rau kuv lub tsev nplooj ntawv tsis muaj duab thiab nws tsuas yog hais tias nws tau txheeb xyuas qhov tseeb. Koj puas paub yog vim li cas qhov no tej zaum yuav yog?

    • 9

      @ twitter-509747237: disqus yog tias koj tau hloov kho rau lawv, koj yuav tsum tau muab rau lawv ob peb lub lis piam los ua kom pom. Zoo li, peb tau pom lawv tshwm ntsej muag thiab ploj ib zaug hauv ib pliag. Nws pom tias nws yog haujlwm ua hauv kev kawm nrog Google.

      • 10

        Ua tsaug rau cov lus teb 🙂 Kuv paub tias nws yuav siv qee lub sijhawm los qhia hauv SERPS, tab sis kuv txhawj xeeb tias nws tsis tshwm sim hauv kev saib ua ntej rau Rich Snippet Testing Tool .. hauv koj txoj kev qhia koj tuaj yeem pom koj lub tuam txhab logo hauv cov khoom siv xeem thiab kuv tsis pom nws, tsuas yog ua kom pom tseeb. Kuv kwv yees Kuv yuav tos nws tawm li ob peb lub lis piam mus saib yog tias kuv tuaj yeem tau nws coj los tso rau hauv RSTT, tab sis yog tias nws yeej tsis ua, ces kuv tsis paub qhov twg kuv mus tsis ncaj ncees lawm (tsis yog maj rau nws kom pom nyob rau hauv SERPS raws li nws coj kuv kev sau txog 3 lub lis piam rau qhov ntawd, tab sis ib txwm qhia tam sim ntawd hauv qhov ntsuas cov cuab yeej). Ua tsaug dua rau cov lus teb.

        • 11

          @ twitter-509747237: disqus Nthuav! Nws zoo nkaus li lawv tau tshem tawm tus tshaj tawm txuas qhov txuas los ntawm kev qhia lub logo. Tus stinks !!! Kuv vam tias lawv yuav pib tshaj tawm qhov ntawd hauv SERP. Koj tus sau txuas yog qhov zoo mus, ho!

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.