you might need someone who can do this for your however you can try to use
$image_url = $EM_Event->output('#_EVENTIMAGEURL');
then
<image>
<url><?php echo $image_url; ?></url>
<link><?php echo $event_url; ?></link>
</image>
http://www.xul.fr/en-xml-rss.html
Thread Starter
Anonymous User 14018805
(@anonymized-14018805)
Thank you!
This is the code I used:
$image_url = $EM_Event->output('#_EVENTIMAGEURL');
?>
<item>
<title><?php echo $EM_Event->output( get_option('dbem_rss_title_format'), "rss" ); ?></title>
<link><?php echo $event_url; ?></link>
<guid><?php echo $event_url; ?></guid>
<pubDate><?php echo get_gmt_from_date(date('Y-m-d H:i:s', $EM_Event->start), 'D, d M Y H:i:s +0000'); ?></pubDate>
<description><![CDATA[<?php echo ('<img width="300" height="300" src="'. $image_url .'"/> ' . $description); ?>]]></description>
</item>
<?php
But I’m noticing another things. The content description is empty. How can I display post description?
This is what I see now:
<item>
<title>Test Event 4</title>
<link>http://www.gostudy.com.au/events/test-event-4/</link>
<guid>http://www.gostudy.com.au/events/test-event-4/</guid>
<pubDate>Mon, 27 Jun 2016 14:00:00 +0000</pubDate>
<description><![CDATA[<img width="300" height="300" src="http://www.gostudy.com.au/wp-content/uploads/2015/11/11114167_171653509850567_8734785297938027177_o-e1447830014639.jpg"/> 28/06/2016 - 12:00 AM <br/>Sydney <br/>Side Bar, 509 Pitt Street <br/>Sydney]]></description>
</item>
How you can see it only shows date and location, but not post description…
Thank you!
Daniele
Thread Starter
Anonymous User 14018805
(@anonymized-14018805)
Hello,
anyone knows how to display post description in rss feed?
It seems that $description field is empty.
Thank you
Thread Starter
Anonymous User 14018805
(@anonymized-14018805)
Actually I use this to put description in RSS feed:
<description><![CDATA[<?php echo (‘<img width=”300″ height=”300″ src=”‘. $image_url .'”/> ‘ . $description); ?>]]></description>
Thread Starter
Anonymous User 14018805
(@anonymized-14018805)
Thanks resolved with
Events > Settings > Formatting > RSS > RSS description format