Well, I'm trying to list posts from another site via RSS. Everything appears except the thumbs of the images ..
NOTE:IhaveaccesstothefileserverwhereIamtryingtopulltheposts,ifanyoneknowsanalternativetothis,pleaseinformme...CODEBELOW:
<?phpif(isset($_GET["xml-feed"])) {
$strXml = file_get_contents("http://www.euvosescrevi.com.br/feed/");
$xml = simplexml_load_string($strXml, "SimpleXMLElement", LIBXML_NOCDATA);
$json = json_encode($xml);
$array = json_decode($json, true);
$arrItens = (array) isset($array["channel"]["item"]) ? $array["channel"]["item"] : "";
if (count($arrItens) > 0) {
?>
<hr>
<div class="blog-posts row margin-bottom-60">
<?php
$countItens = 0;
foreach ($arrItens as $arr) {
if ($countItens >= 2) break;
$title = $arr["title"];
$link = $arr["link"];
$pubDate = date("d/m/Y", strtotime($arr["pubDate"]));
$description = word_count(strip_tags($arr["description"]), 50);
$countItens++;
?>
<div class="col-md-6 col-sm-6">
<h2><?php echo $title; ?></h2>
<ul class="blog-info">
<li><i class="fa fa-calendar"></i> <?php echo $pubDate; ?></li>
</ul>
<p><?php echo $description; ?></p>
<p><a class="more" href="<?php echo $link; ?>" target="_blank">Leia mais <i class="fa fa-angle-right"></i></a></p>
</div>
</div>