Shambadzira Zvekunze Zvekupa mune Yako WordPress Siti

Depositphotos 38199905 s

Vamwe vanhu havazvizive, asi WordPress yakabatanidza kugona kushambadzira mamwe mafidha pamwe nevamwe vari kunze kwebhokisi maficha. Ini ndanyora munguva yakapfuura nezvekuti ungaburitsa sei blog's feed kuti upe iyo wedzera kune saiti kiyi kiyi kuwanda kweyakagadziriswa yekutsvaga injini optimization - asi aya ndiwo maitiro ekuzviita chaizvo mukati meWordPress.

WordPress yakapinza Magpie uye RSS Caching mukati mayo iripo basa, fetch_feed:

  • fetch_feed - dzosera RSS feed kubva ku URL ine otomatiki caching (yakaiswa mu rss_functions.php)

Kana iwe uchida, semuenzaniso, wedzera edu matsva mashanu zvinyorwa kune yako saiti (sezvatakaita pa DK New Media):

tora_item_kuwanda (5); $ zvinhu = array_slice ($ rss-> get_items, 0, $ maxitems); endif; ?>  Hapana zvinhu '; zvimwe foreach ($ zvinhu se $ chinhu):?> get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->get_date('j FY | g:i a') ); get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->tora_date ('j FY | g: i a')); get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->?>'> get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->?> '> get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->get_title() ); get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->tora_title ()); get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->?> get_permalink() ); ?>' 
title="<? php kuprinta (__ ("Posted %s', 'my-text-domain' ), $item->?>

Rongedza yako WordPress template (Dhizaini> Musoro Wemusoro) uye isa kodhi iyo iwe yaungade iyo feed kuti ibudise. Kune zvakare toni yemadhigadhi emawadhi kunze uko ayo achashambadzira mafidha iwe zvakare.

4 Comments

  1. 1

    Iwe unogona kudzorerazve zvako zvemukati, zvakare, kwete vamwe chete. Ndakaita izvi kwechinguva pa SMJdesign sezvo zvese iri blog iri kuunganidzwa kwemablog angu mana. Ini ndoda kushandisa FeedList plugin panzvimbo yeiyo yakavakirwa muRSS mashandiro.

    Iwe unogona kushandisa izvi kune Twitter sideblog kana chero chinhu chine RSS feed!

    • 2

      Ndafara kukuona padenderedzwa, Stefano! Unoda kuziva nezve zvakanakira plugin pamusoro peyakavakirwa muzvinhu? Icho chingori chinongedzo? Ini ndinoda chokwadi chekuti caching yakavakirwa mukati mekunze basa - kune yakakwira vhoriyamu mazuva / nzvimbo, izvo zvinogona kuuya zvinobatsira!

      Mufaro!
      Doug

  2. 3

    Penya - izvi ndizvo chaizvo zvandinoda! Ndanga ndichishanda pane WP MU saiti uye ini ndinongoda iyo huru blog kuti ingo ratidza peji ine yakanaka graphic kune yega yega mablog. Zvino, ini ndinogona kuwedzera mune akati wandei machira pasi pega girafu pane kuti ivo vatandare padivi repadenga vachishandisa iyo RSS widget.

    • 4

      Zvinotyisa, William!

      Chikamu chinonakidza ndechekuti ini ndaive pakati nepasi penzira yekushandisa MagPie pandakasarudza kutarisa WP saiti kunze kuti ndione kuti vamwe vangave vachizviita sei. Ivo vanhu veWP vanoita chaizvo basa rakanaka, handizvo here?

      Doug

Unofungei?

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