Buga Ciyarwar waje a Shafin Yanar Gizon ku

Sanya hotuna 38199905 s

Wasu mutane ba su san shi ba, amma WordPress ya haɗu da ikon buga wasu abubuwan ciyarwa tare da wasu kayan aikin akwatin. Na rubuta a baya akan yadda ake buga abincin blog domin bada a haɓaka zuwa mahimmancin kalmomin shafin don ingantaccen injin binciken bincike - amma wannan shine yadda ake yin sa daidai cikin WordPress.

WordPress ya saka Magpie da RSS Caching a ciki akwai aikin, fetch_feed:

  • a kawo_kawo - dawo da abincin RSS daga URL tare da ɓoye kai tsaye (an haɗa shi cikin rss_functions.php)

Idan kanaso, misali, kara sabbin sakonnin mu 5 a shafin ka (kamar yadda mukayi a baya DK New Media):

samu_girman_ (5); $ abubuwa = tsararru_slice ($ rss-> get_items, 0, $ maxitems); endif; ?>  Babu abubuwa '; wani abu kuma ($ abubuwa azaman $ abu):?> get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->get_date('j FY | g:i a') ); get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->samun_ kwanan wata ('j FY | g: i a')); get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->?>'> get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->?> '> get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->get_title() ); get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->samu_title ()); get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->?> get_permalink() ); ?>' 
title="<? php bugawa (__ ("Posted %s', 'my-text-domain' ), $item->?>

Shirya samfurinka na WordPress (Design> Editan Edita) kuma sanya lambar a inda kake son abincin ya buga. Hakanan akwai tarin widget din gefe na gefe a waje wanda zai buga muku ciyarwa shima.

4 Comments

  1. 1

    Kuna iya sake buga abun cikin ku, ma ba wasu kawai ba. Na yi wannan na ɗan lokaci a SMJdesign tunda duk wani shafi ne wanda yake tattare da bulogina guda hudu. Na fi son amfani Fayil na FeedList maimakon ginawa a cikin aikin RSS.

    Kuna iya amfani da wannan don rubutun Twitter ko duk wani abu da ke da ciyarwar RSS!

    • 2

      Yayi kyau ganin ku a da'irar, Istifanus! Neman sha'awar fa'idodi akan abubuwanda aka gina su? Shin kawai ma'amala ne? Ina son gaskiyar cewa an gina ɓoye a cikin aikin ciki - don manyan kwanaki / shafuka, wannan na iya zuwa cikin sauki!

      Bisimillah!
      Doug

  2. 3

    Mai haske - wannan shine ainihin abin da nake buƙata! Ina aiki a kan WP MU site kuma kawai ina son babban blog ɗin kawai don nuna shafi tare da kyakkyawan hoto ga kowane shafin yanar gizon. Yanzu, Zan iya ƙarawa a cikin wasu ma'aurata a ƙarƙashin kowane hoto maimakon in sa su a gefe a gefe ta amfani da widget din RSS.

    • 4

      Madalla, William!

      Abun ban dariya shine na kasance rabin hanya ta hanyar aiwatar da MagPie lokacin da na yanke shawarar bincika shafin WP don ganin yadda wasu zasu iya yi. Waɗannan mutanen a WP suna da kyakkyawan aiki, ko ba haka ba?

      Doug

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.