Foillsich Biadhan Taobh a-muigh air an Làrach WordPress agad

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 - ach seo mar a nì thu e ceart taobh a-staigh WordPress.

Tha WordPress air Magpie agus RSS Caching a stèidheachadh taobh a-staigh a gnìomh ri fhaighinn, fetch_feed:

  • fetch_feed - faigh biadh RSS air ais bho URL le tasgadan fèin-ghluasadach (air a ghabhail a-steach ann an 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); $ nithean = array_slice ($ rss-> get_items, 0, $ maxitems); endif; ?>  Gun nithean '; eile foreach ($ nithean mar $ nì):?> 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: 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->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 Beachdan

  1. 1

    Faodaidh tu an susbaint agad fhèin ath-fhoillseachadh, cuideachd, chan e dìreach feadhainn eile. Tha mi air seo a dhèanamh airson greis aig SMJdesign seach gur e blog a th ’ann a tha na chruinneachadh de na ceithir blogaichean agam. Is fheàrr leam a chleachdadh Plug FeedList an àite an gnìomh RSS a chaidh a thogail.

    Faodaidh tu seo a chleachdadh airson bann-taobh Twitter no rud sam bith aig a bheil biadh RSS!

    • 2

      Math ur faicinn air a ’chearcall, Stephen! A bheil thu inntinneach mu na buannachdan a th ’aig a’ phlug thairis air na feartan togte? An e dìreach an eadar-aghaidh? Is toigh leam an fhìrinn gu bheil caching air a thogail a-steach don ghnìomh a-staigh - airson làithean / làraichean àrd, dh ’fhaodadh sin a thighinn a-steach gu dòigheil!

      Slàinte!
      Doug

  2. 3

    Sgoinneil - is e seo dìreach a tha a dhìth orm! Tha mi air a bhith ag obair air làrach WP MU agus tha mi dìreach airson gum bi am prìomh bhlog dìreach a ’sealltainn duilleag le grafaigeach snog airson gach fear de na blogaichean. A-nis, is urrainn dhomh post càraid a chuir a-steach fo gach grafaigeach seach a bhith gan crochadh a-mach air a ’bhàr-taobh a’ cleachdadh a ’widget RSS.

    • 4

      Gu h-iongantach, Uilleam!

      Is e am pàirt èibhinn gu robh mi letheach slighe sìos an rathad airson MagPie a chuir an gnìomh nuair a cho-dhùin mi sgrùdadh a dhèanamh air làrach WP gus faicinn mar a bhiodh daoine eile ga dhèanamh. Tha na daoine sin aig WP a ’dèanamh obair ionmholta, nach eil?

      Doug

Dè do bheachd?

Tha an làrach seo a 'cleachdadh Akismet gus spama a lùghdachadh. Ionnsaich mar a thathar a 'pròiseasadh an dàta bheachdan agad.