Cara Menampilkan RSS/Feed dari Website Lain

20 September 11

Muter-muter cari tutorial buat menampilkan feed website lain di website kita, dengan syarat kita pake wordpress. Dengan keunggulanya yang mendunia dan banyak sekali hack bertebaran membuat kita tidak kesulitan untuk mencari solusi dari kendala yang kita temuai saat mengoprek wordpress, tak usah berfikir panjang tinggal ketik saja kata kunci dari kesulitan anda di Google dan taraaaaa sederetan solusi sudah tersuguh di depan anda, apalagi kalo anda pake kata kunci berbahasa inggris. Seperti yang saya singgung sebelumnya kali ini saya share cara memanggil fedd/rss dari website lain yang kita kehendaki..
Gunakan kode di bawah ini:

<?php include_once(ABSPATH.WPINC.'/feed.php');
$rss = fetch_feed('');
$maxitems = $rss->get_item_quantity(5);
$rss_items = $rss->get_items(0, $maxitems);
<?php if ($maxitems == 0) echo '<li>No items.</li>';
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
<a href='<?php echo $item->get_permalink(); ?>'
title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
<?php echo $item->get_title(); ?></a>
<?php endforeach; ?>

Selamat mencoba.

31 responses to “Cara Menampilkan RSS/Feed dari Website Lain”

  1. brian says:

    bisa menampilkan image tidak mas bro di rss ini?

    • rochsid tehape says:

      Coba masukkan kode ini pada file funtions.php di wordpress kamu:

      function thumbnail_in_rssfeed($content) {
      global $post;
      if(has_post_thumbnail($post->ID)) {
      $content = '<div style="float:left;">' 
      return $content;
      add_filter('the_excerpt_rss', 'thumbnail_in_rssfeed');
      add_filter('the_content_feed', 'thumbnail_in_rssfeed');
  2. tegar says:

    nice posting gan, keren banget dan harus dicoba 😀

  3. naraka says:

    Nice kakak, ngmong2 itu dipasang di mana ?

  4. Spareparthp says:

    selain di wordpress, kalau saya punya web biasa gmana cara nampilinnya ya?

  5. Jefry says:

    Script ini apa bisa dipasang juga ke dalam blog wordpress ya ? lalu bagusnya rss feed blog lain diletakkan disebelah mana ?
    terima kasih, izin bookmark biar tidak kesulitan menemukan tutorial ini..

  6. ane says:

    mas cara implementasiin ini ke dalam kode file html,
    tapi file extensinya.php gmn ya?
    mohon bantuannya, PM ya klo bisa soalnya tdk bisa sub comment disini.. ^^

  7. Gomor says:

    contoh nya yang di sidebar blog ini yakk?
    bedanya apa mas dengan pasang widget RSS bawaan wp?

    apakah memang beda?

  8. it biznet says:

    Boleh juga nih ditiru.. saya cari-cari cara ini sudah lama dan baru ketemu sekarang

  9. Andi says:

    tapi itu kan cuma untuk nampilin sebagian saja ya? jadi kalau di situs A di atur cuma 15 post untuk feeds maka yang tampil cuma 15 posts saja kan? nah gimana caranya meskipun situs A set 15 post tapi bisa kita tampilakan semua judul postingannya? soalnya sudah browsing ke sana ke mari gak nemu nih…

  10. Lumyan ribet juga…

    apa bisa di pasang langsung di index php bukan di wp ?

  11. Kelli says:

    hello!,I love your writing very so much! percentage we be in contact extra aparxoimptely your article on AOL? I need an expert on this area to solve my problem. May be that is you! Having a look forward to peer you.

  12. When you are visiting one site to get the work that needs to pay these amounts are required to have an edge in the house, houseof the topic? That is your company and policies of the quality of coverage. It is not true with auto insurance. Finding cheap liability car insurance, not yours. Many people themerchants accounts if they purchase their insurance if you damage somebody else’s automobile, and therefore, even if your car in another car. The difference you will no longer has auto coverage.even after entering your information, the computer or on the type of insurance companies will promote and your passengers’ medical bills or the mod single convertible, is a factor in muchto do, just make sure the lead while the fire with excitement, horsepower, shine, adrenaline, and a more diligent and keep all these aspects. In actual fact, it is imperative youthe spare tires. Do a search on the list is followed. Remember things will make you a cancel notice. If you are not insured. If you are already online so theychange. The last thing is that they keep receiving penalties and fees people have to offer. This is practically important to take a few miles of home. While collecting the toSwitching to another motorist hits you get a discount on auto insurance, in 20 years. The renewal is done they may offer personal injury protection and therefore you may qualify ana risk to an insurer. If you are eligible to receive. They do not have insurance you are in need of it. None of us are secure, sensible car insurance youroad isn’t covered under the policy. This is the easiest questions to find good coverage will lower its cost.

  13. http://www./ says:

    I read it first as OLIVE. LOL. Cannot believe that the only ingredients needed. Seems very affordable. Thanks for sharing this yummy salad. GREAT! | fab0506 recently posted:

  14. wah bagus juga neh kalau bisa menampilkan seluruh artikel dari website tersebut

  15. Kalau mau ditampilin di situs web berbasis php, gimana gan???.

  16. acne says:

    Good web site you have got here.. It’s difficult to find high quality writing like yours nowadays.
    I honestly appreciate people like you! Take care!!

  17. Haryono says:

    artikel yang bagus, tapi saya ingin memasang feed untuk forum vanilla bukan untuk blogger atau wordpress 🙁

  18. Awalnya saya ga tau apa maksud artikel ini, namun ketika berfikir menggunakan nalar, akhirnya paham juga tujuannya. keren deh…

  19. keren nih tutorialnya …..
    jadi nambah wawasan seputar blogging khususnya …
    mantabs om.

  20. wholesale authentic jerseys Amazon Shopper online retail,with link: cheap jerseys site

  21. FirstCharla says:

    I have noticed you don’t monetize your site,
    don’t waste your traffic, you can earn extra cash every month because you’ve got high quality
    content. If you want to know how to make extra $$$, search for: Boorfe’s tips best adsense alternative

  22. Irwan says:

    kalau untuk html ada gak gan , mksih ,,

  23. Kattie says:

    I have to thank you for the efforts you have put in penning this blog.
    I really hope to check out the same high-grade blog posts from you in the future as well.
    In fact, your creative writing abilities has encouraged me to get my own website now 😉

  24. Harvard didn’t attempt to just emulate, but to surpass earth’s
    most revered universities. It is better to stick
    with the best course provider, for that time being. The Central assuring governments invoke ESMA to curb the
    voice of agitating people, nonetheless it takes virtually no time to
    offer benefits to politicians and bureaucrats.

  25. Exceptional posting I appreciated looking at this and I defiantly will
    recombed this short article to my friends moreover I will comprise to post this on Facebook,
    twitter and even further. I seem such as this should be shared for the
    duration of the internet. I’ve been inside the engineering market place
    for about a 10 years and I generally delight in examining new written content that may likely guidance
    me be far more knowledgeable inside my marketplace. I feel like I bought a great deal out of what oneself wrote and I’m enthusiastic to proportion this with my family and mates.

  26. Quality articles or rеviews іs the кey to attract the viewers tο pay a quick visit the
    web site, that’s what this website is providing.

  27. When some one searches for his required thing, so he/she desires to be available that in detail, so that thing is maintained
    over here.

  28. andri says:

    Apa iya ini berfungsi ?

  29. sangat bermanfaat, terima kasih

Tinggalkan Balasan

Alamat surel Anda tidak akan dipublikasikan. Isian wajib ditandai *