channel->item, 0, 4); $i = 0; echo ' TheBatorBlog https://www.thebatorblog.com The Bate Goes On Sat, 22 Apr 2017 21:34:39 +0000 en-US hourly 1'; foreach ($items as $item) { $i = $i + 1; $titleRaw = (string) $item->title; // Title Post $title = ucwords(strtolower(str_replace("&", "&", $titleRaw))); $link = (string) $item->link; // Url Link $link1=explode("?", $link); $link =$link1[0]; $pubDate = (string) $item->pubDate; // date $descriptionFull = (string) str_replace("&", "&", $item->description); //Description Post $imgPost = (string) $item->url; // post image $description = truncate(strip_tags($descriptionFull), 100); echo ' '.$title.' '.$link.' '.$link.'#comments '.$description.' '.$imgPost.' '; } ?>