WordPress rel = "prev" ndi rel = "lotsatira"

google woyang'anira masamba s

Zaka zingapo zapitazo, anthu amatha kusanja masamba awo pogwiritsa ntchito njira yotchedwa nofollow. Kwenikweni, ngati mutalemba rel = "nofollow" mkati mwa chikwangwani (ulalo), chiphunzitsochi chinali chakuti injini yosakira isanyalanyaze ulalowu ndikunyalanyaza tsamba lotsatira. Idagwiritsidwa ntchito kwambiri ndi masamba ngati Wikis komanso mkati mwa ndemanga kuti maulalo omwe adasinthidwa ndi ogwiritsa ntchito asazunzidwe ndikutsatiridwa.

Alangizi a Search Engine adazindikira mwachangu momwe maulalo amtunduwu anali othandiza, kuwaza pamalumikizidwe onse patsamba kuti maulalo ena amalemera kwambiri kuposa ena. Mchitidwewu udatchedwa kujambula tsamba ndipo pamapeto pake ananyozedwa ndi Google.

Ndimagwiritsabe ntchito nofollow pamaulalo anga achikunja (awa ndi maulalo otsatira ndi am'mbuyo) patsamba. Mwanjira imeneyi masamba anga (2, 3, 4, etc.) sangaphatikizidwe muzosaka. Ndidachita izi ndikusintha komwe ndidapeza Katz Web Services page.

Sabata yatha, Google idapereka pomwe Maulalo achikunja amatha kulembedwa ndi rel = "next" ndi rel = "prev" mkati mwa ma anangula. Mwamwayi, ntchito (zomwe ziyenera kuwonjezeredwa pa fayilo ya theme.php yamutu wanu) ndizosavuta kusintha. Nawo ali ndi zosintha.

Makonda pazotsatira za Tsamba Lotsatira:

ntchito mtb_next_posts_link ($ label = 'Tsamba Lotsatira', $ max_page = 0) {global $ paged, $ wp_query; ngati (! $ max_page) {$ max_page = $ wp_query-> max_num_pages; } ngati (! $ paged) $ paged = 1; $ nextpage = intval ($ paged) + 1; ngati ((! is_single ()) && (chopanda ($ paged) || $ nextpage> = $ max_page)) {echo '> a rel = "next" href = "'; next_posts ($ max_page); mutu wa" echo " = "Tsamba lotsatira - Pitani patsamba '. $ Nextpage.'"> '. preg_replace ('/ & ([^ #]) (?! [az] {1,8};) /', '& $ 1', $ chizindikiro). '> / a>'; }}

Makonda anu pamaulalo a Tsamba Lakale:

ntchito mtb_previous_posts_link ($ label = 'Tsamba Lakale') {global $ paged; ngati ((! is_single ()) && ($ paged> 1)) {$ prevpage = intval ($ paged) - 1; echo '> a rel = "prev" href = "'; previous_posts (); echo '" title = "Tsamba lakale - Pitani patsamba'. $ prevpage. '">'. preg_replace ('/ & ([^ #]) (?! [az] {1,8};) /', '& $ 1', $ chizindikiro). '> / a>'; }}

Onjezani ntchitozo ku functions.php ndiyeno mugwiritse ntchito mu index.php yanu ndi masamba ena momwe maulalo achikunja amagwiritsidwa ntchito. Ndizomwe zimafunika kuti mugwiritse ntchito pulogalamu yatsopanoyi patsamba lanu la WordPress kapena blog - zomwe ndikulimbikitsani kwambiri! Tikukhulupirira, opanga WordPress adzakwaniritsa kusinthaku mkati mwazoyambira. Pakadali pano, sanasamalire kwambiri kukonza makina osakira, komabe, sindinapume.

2 Comments

  1. 1
  2. 2

    Zikomo chifukwa cholemba. Tsoka ilo, sindikumvetsetsa momwe ndingagwiritsire ntchito izi… Kotero ine ndikupemphera tsopano (ndi kusaka pang'ono pa Google) kuti pali pulogalamu yolumikizira yomwe imandichitira ine…

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.