[Wordpress ] - code to show last Foxiewire news in your WP Blog

If somebody have a Wordpress Blog and would like to display the last entries at Foxiewire, this is the code to use:

<?php
    require_once(ABSPATH . WPINC.'/rss-functions.php');
  $feedRSS = @fetch_rss("http://www.foxiewire.com/rss.php");

  if(isset($feedRSS->items) && 0 != count($feedRSS->items)){
?>

<ul>
  <?php
    foreach($feedRSS->items as $k => $tag){

      if($k==7) break;
      echo "<li><a href='$tag[link]'>$tag[title]</a></li>";
    }
}
  ?>
</ul>

The code need to be inserted in your file templates, if you use a theme like K2, you can use the "Text, HTML and PHP" widget.

Have fun :-)

thank you gialloporpora

See it live Mozilla News on gialloporpora site http://www.gialloporpora.netsons.org/



Jamey Boje

SFx Administrator mozilla daily news

Thank you Jamey for

Thank you Jamey for submiting it to Foxiewire :-)
If I have free time to read WP documentation I could make a plugin to integrate it as a WP Widget.
Sandro

thank you gialloporpora

Are you kidding me thank you its very kind of you
thank you very much ;)



Jamey Boje

SFx Administrator mozilla daily news

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.