Tshaj Tawm Cov Khoom Siv Sab Nraud Hauv Koj Lub Vev Xaib WordPress

Depositphotos 38199905 s

Qee tus neeg tsis paub txog nws, tab sis WordPress tau ua ke muaj peev xwm tshaj tawm lwm cov kev txau nrog qee qhov tawm ntawm lub thawv. Kuv tau sau yav dhau los yuav ua li cas luam tawm ib qhov blog pub rau muab a txhawb rau lub vev xaib cov ntsiab lus ntom ntwm rau kev txhim kho kev tshawb fawb ntawm lub cav - tab sis qhov no yog yuav ua li cas thiaj muaj cai nyob hauv WordPress.

WordPress tau teeb tsa Magpie thiab RSS Caching nyob rau hauv nws muaj nuj nqi, fetch_feed:

  • nqa-khoom - khaws ib qho RSS pub los ntawm kab URL nrog cov caching tsis siv neeg (muaj nyob rau hauv rss_functions.php)

Yog tias koj xav, piv txwv li, ntxiv peb cov ntawv tshaj tawm tshiab 5 rau koj lub xaib (raws li peb tau ua DK New Media):

get_item_quantity (5); $ khoom = array_slice ($ rss-> get_items, 0, $ maxitems); endif; ?>  Tsis muaj khoom '; lwm foreach ($ khoom raws li $ khoom):?> get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->get_date('j FY | g:i a') ); get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->get_date ('j FY | g: i a')); get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->?>'> get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->?> '> get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->get_title() ); get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->get_title ()); get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->?> get_permalink() ); ?>' 
title="<? php luam tawm (__ ("Posted %s', 'my-text-domain' ), $item->?>

Kho kom raug koj WordPress template (Tus Qauv Tsim> Cov Lus Qhia Txog Cov Ntsiab Lus) thiab tso cov code koj xav tau cov kab tawm los tawm. Tseem muaj ib tuj ntawm sidebar widgets muaj sia uas yuav luam tawm txau rau koj ib yam nkaus.

4 Comments

  1. 1

    Koj tuaj yeem rov luam tawm koj tus kheej cov ntsiab lus, thiab, tsis yog lwm tus. Kuv tau ua qhov no ib pliag SMJdesign vim tias txhua yam nws yog blog uas yog kev sib sau ua ke ntawm kuv plaub qhov blogs. Kuv xum siv FeedList plugin hloov chaw cov kev ua hauv RSS ua haujlwm.

    Koj tuaj yeem siv qhov no rau Twitter sideblog lossis txhua yam uas muaj RSS pub!

    • 2

      Zoo saib koj ntawm lub voj voos, Stephen! Xav paub qhov zoo ntawm lub plugin dhau qhov tsim hauv nta? Nws puas yog tsuas yog interface? Kuv nyiam qhov tseeb tias caching tau tsa rau hauv kev ua haujlwm sab hauv - rau siab ntim hnub / chaw, uas tuaj yeem tuaj yeem!

      Cheers!
      Doug

  2. 3

    Ci ntsa iab - qhov no yog qhov kuv xav tau! Kuv tau ua haujlwm ntawm WP MU site thiab kuv tsuas yog xav kom lub ntsiab blog tsuas yog nthuav qhia nplooj ntawv nrog daim duab zoo rau txhua qhov blogs. Tam sim no, Kuv tuaj yeem ntxiv ob peb txoj hauv qab hauv txhua daim duab es tsis ua rau lawv dai rau ntawm ib sab uas yog siv RSS qhov xwm txheej.

    • 4

      Txaus, William!

      Qhov kev tso dag tso dag yog kuv tau ib nrab kev ntawm txoj kev ntawm kev siv MagPie thaum kuv txiav txim siab los xyuas WP qhov chaw tawm kom pom seb lwm tus yuav ua li cas. Cov neeg ntawm WP yeej ua tau ib txoj haujlwm zoo, puas yog?

      Doug

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.