Automating RSS —-> email list, is very common in email marketing, and the entire reason im using Events Manager.
However, I noticed, mailerlite was sending an email out every single day, even when no new events have been posted. Weird.
I contacted mailerlite and sent them the RSS feed to inspect. The developers responded with the issue.
The <pubdate> of the RSS feed is not changing, when no new events are posted. This is correct. Which I pointed out to them.
**HOWEVER** the individual events have their own <pubdate> – and the <pubdate> is being set to the event date – instead of the actual publication date of the event. This seem wrong. The event date cannot be the <pubdate> of the event in the RSS feed.
Obviously, the whole point of an event calendar is to list FUTURE events for people. This future date is completely different than the wordpress publish date of the event.
Mailerlite uses the individual event <pubdate> to determine if there is anything new in the feed.
Since Events Manager is using the future event date as the pubdate ( seems entirely wrong to me) – Mailerlite is sending out an email every day since there are RSS Feed dates > the current date.
This seems like a clear bug to me.
Since an automated RSS feed to update my clients is the CORE reason im using events manager, the software is not usable to me at all
Please please fix. Replace <pubdate> of individual events in the RSS feed to be the actual wordpress publish date of the event so RSS readers can track changes correctly.
]]>We are also using Elementor, I am not sure if this affects Feedzy as well.
]]>it should be with capital D:
<pubDate>Wed, 15 Jun 2022 03:31:00 +0000</puDdate>
Any idea how to fix that?
Thanks
—————————————————–
<?php
/*
Template Name: xml Feed
*/
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<rss version="2.0">
<channel>
<title><![CDATA[Wownews RSS 影劇娛樂]]></title>
<language>zh_tw</language>
<link>https://www.wownews.tw</link>
<generator>rss_generator</generator>
<description><![CDATA[Wownews RSS 影劇娛樂]]></description>
<?php $experience= new WP_Query( array ( 'post_type' => 'post','posts_per_page' => 10));?>
<?php while($experience->have_posts()) : $experience->the_post();
$featured_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'thumbnail') );
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true);
$thumb_url = $thumb_url_array[0];
$imageurl = apply_filters( 'jetpack_photon_url', $thumb_url );
?>
<item>
<title><![CDATA[<?php the_title();?>]]></title>
<description><![CDATA[<?php the_content();?> ]]></description>
<pubDate><?php the_date( 'd, D F Y H:i:s' ); ?> +0800</pubDate>
<link><?php the_permalink();?></link>
<enclosure url="<?php echo $imageurl;?>" />
</item>
<?php endwhile; ?>
</channel>
</rss>
]]>For Example:
standard feed shows
<pubDate>Wed, 14 Oct 2020 14:16:26 +0000</pubDate>
call_custom_simple_rss=1
<pubDate>wo, 14 okt 2020 16:16:26 +0200</pubDate>
any idea why the day and month is not showing in English like the standard WP feed?
]]>Sorry to bother you again. Quick question this time. If I’m adding tot he collection in bulk, how would I format the pubdate field? It doesn’t say anywhere in the user manual. Right now, I’m doing MM/DD/YYYY, but I don’t know if that is correct.
I’m going to add a feature that essentially sorts by pubdate, so I need it to be a SQL date and not a string.
]]>I’d like to ask for more help, still. I’ll try to pipe down after this one. Everything is perfect so far – one more thing.
I’d like the pubdate in the RSS to be populated from the event start date, not the WP post publish date or recently modified date, which ever it is. Also, it would be nice that the pubdate would be sent for translation; we will only ever use the feeds for our Finnish customers.
1. How to inject event start date as pubdate in the feed?
2. How to set pubdate so that it would be translated?
Thank you again.
]]><pubDate>Fri, 02 Aug 2019 19:05:20 +0700</pubDate>
+0700 in this case doesn’t count: imported post was published at 19:05 +0000