WordPress rel = "prev" uye rel = "inotevera"

google webmaster s

Makore mashoma apfuura, vanhu vaigona-kugadzirisa mapeji avo vachishandisa nzira inonzi nofollow. Chaizvoizvo, kana iwe ukanyora rel = "nofollow" mukati mechitsigiso tag (chinongedzo), dzidziso yacho ndeyekuti injini yekutsvaga yaizozeya chinongedzo icho vozeya peji rinotevera. Yakave ichishandiswa zvakanyanya nemasaiti senge Wikis uye mukati memashoko kuitira kuti zvinongedzo zvinoshandiswa nevashandisi zvirege kushungurudzwa nekuteverwa.

Tsvaga Injini vanachipangamazano vakakurumidza kuona kuti anobatsira sei aya marudzi ehukama aive, kuasasa iwo mukati mese zvinongedzo pane peji kuti mamwe ma link airemerwa zvakanyanya kupfuura mamwe. Tsika iyi yakadaidzwa kuveza peji uye yakazotarisirwa pasi neGoogle.

Ini ndichiri kushandisa nofollow pane angu enhema enongedzo (iwo ndiwo anotevera uye apfuura maratidziro) pane ino saiti. Nenzira iyoyo mapeji angu (2, 3, 4, nezvimwewo) aisazobatanidzwa mumhedzisiro yekutsvaga. Ndakaita izvi nekushandurwa kwandakawana pane Katz Web Services peji.

Vhiki rapfuura, Google yakapa yekuvandudza uko chinamato chinongedzo chinogona kunyoreswa ne rel = "inotevera" uye rel = "prev" mukati mematanho echamboko. Nekutenda, iwo mabasa (ayo anofanirwa kuwedzerwa kune yako theme theme.php faira) zviri nyore kugadzirisa. Pano ivo vane iyo yekuvandudza.

Kugadziriswa kweinotevera peji peji zvinongedzo:

basa mtb_next_posts_link ($ label = 'Peji Inotevera', $ max_page = 0) {global $ paged, $ wp_query; kana (! $ max_page) {$ max_page = $ wp_query-> max_num_pages; } kana (! $ paged) $ paged = 1; $ inotevera peji = intval ($ paged) + 1; kana ((! is_single ()) && (isina chinhu ($ paged) || $ nextpage> = $ max_page)) {echo '> a rel = "next" href = "'; next_posts ($ max_page); echo '" zita = "Peji rinotevera - Enda kune peji '. $ Inotevera peji.'"> '. preg_replace ('/ & ([^ #]) (?! [az] {1,8};) /', '& $ 1', $ chitaridzi). '> / a>'; }}

Kugadziriswa kwePamberi Peji zvinongedzo:

basa mtb_previous_posts_link ($ label = 'Peji Rakare') {global $ paged; kana ((! is_single ()) && ($ paged> 1)) {$ prevpage = intval ($ paged) - 1; echo '> a rel = "prev" href = "'; previous_posts (); echo '" title = "Peji rapfuura - Enda kupeji'. $ prevpage. '">'. preg_replace ('/ & ([^ #]) (?! [az] {1,8};) /', '& $ 1', $ chitaridzi). '> / a>'; }}

Wedzera iwo mabasa ku functions.php uye wozoshandisa basa iri mune yako index.php uye mamwe mapeji panoshandiswa zvinongedzo zvekunamatira. Ndo zvese zvinotora kuita ino nyowani ficha pane yako WordPress saiti kana blog - chimwe chinhu ini chandinokurudzira zvikuru! Ndinovimba, ivo vanogadzira WordPress vanozadzikisa shanduko iyi mukati mekushandisa kwekutanga. Parizvino, ivo havana kubhadhara zvakanyanya kutsvaga injini optimization, zvakadaro, saka ini handisi kubata mweya wangu.

2 Comments

  1. 1
  2. 2

    Kutenda nekutumira kukuru. Nehurombo, ini handinzwisise maitiro ekunyatso ita izvi… Saka ini ndave kuenda kunonamata (uye nditsvage zvishoma Google) kuti pane plug-in inoitira izvi kwandiri…

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.