View Single Post
  #15  
Old 01-24-2011, 01:45 PM
  promart418's Avatar 
promart418 promart418 is offline
 

Senior Member
  
Join Date: Jan 2009
Location: Leeds, West Yorkshire, England
Posts: 137
 

Default Re: Display latest Wordpress Posts

Hi,

I added:
Code:
{sr_wpfeed var="someposts" wpsite="http://www.promartsupplements.co.uk/blog" num=2} {foreach from=$someposts item=somepost} <h2> <a href="{$somepost.link}"> {$somepost.title} </a> </h2> {$somepost.description} <br> {/foreach}

but I got the following errors:
Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.promartsupplements.co.uk/blog//feed:1: parser error : Document is empty in /home/promarts/public_html/include/templater/plugins/function.sr_wpfeed.php on line 91
Error: Smarty error: Error reading XML file in /home/promarts/public_html/Smarty-2.6.19/Smarty.class.php on line 1092
Warning: Invalid argument supplied for foreach() in /home/promarts/public_html/include/templater/plugins/function.sr_wpfeed.php on line 95

Any ideas what is causing the errors?

Thanks,
__________________
x-cart version - 5

Martin Procter

Promart Supplements
Nicola Anne Photography
Reply With Quote