Pibliye Feeds Ekstèn nan sit WordPress ou

Depositphotos 38199905 s

Some folks don't realize it, but WordPress has integrated the ability to publish other feeds with some out of the box features. I've written in the past on how to publish a blog's feed to give a boost to a site's keyword density for improved search engine optimization - men sa a se ki jan fè li dwat nan WordPress.

WordPress te entegre Magpie ak RSS Caching nan li yo disponib fonksyon, fetch_feed:

  • fetch_feed - Rekipere yon RSS feed ki sòti nan yon URL ak caching otomatik (enkli nan rss_functions.php)

If you'd like to, for example, add our latest 5 posts to your site (as we did on DK New Media):

get_item_quantity (5); $ atik = array_slice ($ rss-> get_items, 0, $ maxitems); endif; ?>  Pa gen atik '; lòt bagay pou chak ($ ​​atik kòm $ atik):?> 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->get_date ('j FY | g: mwen yon')); 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->get_title ()); get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?> get_permalink() ); ?>' 
title="<? php printf (__ ("Posted %s', 'my-text-domain' ), $item->?>

Edit your WordPress template (Design > Theme Editor) and place the code where you'd like the feed to publish. There are also a ton of sidebar widgets out there that will publish feeds for you as well.

4 Kòmantè

  1. 1

    Ou ka repibli pwòp kontni ou, tou, pa sèlman lòt moun. Mwen te fè sa pou yon ti tan nan SMJdesign depi tout li se yon blog ki se yon agrégation nan kat blogs mwen an. Mwen prefere itilize Plugin FeedList olye pou yo bati nan fonctionnalités RSS.

    Ou ka itilize sa pou yon sideblog Twitter oswa nenpòt bagay ki gen yon RSS feed!

    • 2

      Bon pou wè ou sou sèk la, Stephen! Kirye de avantaj ki genyen nan Plugin la sou karakteristik yo ki bati? Èske li senpleman koòdone a? Mwen renmen lefèt ke caching bati nan fonksyon entèn la - pou gwo volim jou / sit, ki ta ka vini an sou la men!

      Cheers!
      Doug

  2. 3

    Briyan - sa a se egzakteman sa mwen bezwen! Mwen te ap travay sou yon sit WP MU e mwen senpleman vle blog prensipal la jis montre yon paj ak yon grafik bèl pou chak nan blogs yo. Koulye a, mwen ka ajoute nan yon posts koup anba chak grafik olye ke fè yo pann soti sou ankadre a lè l sèvi avèk widje a RSS.

    • 4

      Awesome, William!

      Pati a komik se mwen te mwatye wout sou wout la nan aplikasyon MagPie lè mwen deside tcheke sit la WP soti yo wè ki jan lòt moun ta ka fè li. Moun sa yo ki nan WP reyèlman fè yon kokenn travay, pa vre?

      Doug

Ki sa ou panse?

Sit sa a sèvi ak Akismet diminye Spam. Aprann kijan kòmantè ou a trete.