• Resolved kgagne

    (@kgagne)


    Hi!

    I think I have the same question this person did.

    I’ve included this code in my theme’s functions.php file:

    function add_events_to_rss_feed( $args ) {
      if ( isset( $args['feed'] ) && !isset( $args['post_type'] ) )
        $args['post_type'] = array('post', 'tribe_events');
      return $args;
    }
    
    add_filter( 'request', 'add_events_to_rss_feed' );

    Here’s the resulting RSS feed. An event I posted just this weekend shows up in the RSS feed with the event date, not the publish date:

    <pubDate>Sat, 15 Apr 2017 23:00:00 +0000</pubDate>

    As a result, MailChimp is sending newsletters every day between now and the event date. How do I change <pubDate> to the actual event date?

    -Ken

Viewing 1 replies (of 1 total)
  • Caroline

    (@tribecari)

    Hi @kgagne,

    Thanks for reaching out, and I’m so sorry for the trouble here! Just to confirm, does this problem only happen when using a functions.php modification to add events to your main RSS feed, or does it also occur with this function commented out when viewing the events-only RSS feed (located at [your-calendar-url]/feed)?

    Let us know what you’re able to find out!

Viewing 1 replies (of 1 total)
  • The topic ‘Change RSS pubDate from event date’ is closed to new replies.