Phatlalatsa Phepelo ea kantle ho Setsi sa Hau sa Phatlalatso

Litšoantšo tsa Depositph 38199905 s

Batho ba bang ha ba elelloe, empa WordPress e kopantsitse bokhoni ba ho phatlalatsa liphepelo tse ling le tse ling tsa likarolo tsa lebokose. Ke ngotse nakong e fetileng hore na ho phatlalatsoa joang phepelo ea blog ho fana ka ntlafatsa matla a motlakase oa sebaka sa marang-rang bakeng sa ntlafatso ea enjine ea patlo - empa ena ke mokhoa oa ho e etsa hantle kahare ho WordPress.

WordPress e kentse Magpie le RSS Caching ka har'a eona mosebetsi o teng, lata_feed:

  • fetch_tse - fumana RSS feed ho tsoa ho URL e nang le caching e iketsang (e kenyelelitsoe ho rss_functions.php)

Haeba u ka rata, ho etsa mohlala, eketsa lintlha tsa rona tsa morao-rao tse 5 sebakeng sa hau sa marang-rang (joalo ka ha re entse DK New Media):

fumana_e_palo (5); $ items = array_slice ($ rss-> get_items, 0, $ maxitems); qetella; ?>  Ha ho lintho '; foreach e ngoe ($ items as $ item):?> get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->get_date('j FY | g:i a') ); get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->fumana_date ('j FY | g: i a')); get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?>'> get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?> '> get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->get_title() ); get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->fumana_title ()); get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?> get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?>

Fetola template ea hau ea WordPress (Design> Theme Editor) ebe u beha khoutu moo u ka ratang hore phepelo e phatlalatsoe. Ho boetse ho na le thapo ea li-widgets tse ka thoko tse tla u fepa le uena.

4 Comments

  1. 1

    U ka hatisa litaba tsa hau hape, eseng ba bang feela. Ke entse sena nakoana ho SMJdesign kaha kaofela ke blog eo e leng pokello ea li-blog tsa ka tse 'ne. Ke khetha ho sebelisa Phallo ea FeedList sebakeng sa ts'ebetso ea RSS e hahiloeng.

    U ka sebelisa sena bakeng sa lehlakore la marang-rang la Twitter kapa eng kapa eng e nang le fepa ea RSS!

    • 2

      Ke thabela ho u bona u le selikalikoe, Stephen! U labalabela ho tseba melemo ea plugin ho feta likarolo tse hahiloeng? Na ke sebopeho feela? Ke rata taba ea hore caching e hahiloe ts'ebetsong ea kahare - bakeng sa matsatsi / libaka tsa bophahamo ba modumo, tse ka sebetsang hantle!

      Hlasimollang!
      Doug

  2. 3

    E khanyang - sena ke sona seo ke se hlokang! Ke ntse ke sebetsa sebakeng sa WP MU mme ke mpa ke batla hore blog e kholo e bonts'a leqephe le nang le setšoantšo se setle bakeng sa li-blog tsohle. Hona joale, nka kenya li-post tse 'maloa tlasa setšoantšo se seng le se seng ho fapana le hore ba fanyehe ka lehlakoreng la lehlakoreng ba sebelisa widget ea RSS.

    • 4

      William, ea makatsang!

      Karolo e qabolang ke hore ke ne ke le bohareng ba tsela ea ho kenya tšebetsong MagPie ha ke nka qeto ea ho lekola sebaka sa WP ho bona hore na ba bang ba ka se etsa joang. Batho bao ba WP ba hlile ba etsa mosebetsi o motle, na ha ho joalo?

      Doug

U nahana eng?

Sebaka sena se sebelisa Akismet ho fokotsa spam. Ithute kamoo litlhaloso tsa hau li hlahang kateng.