events rss feed date missing

Home Forums Calendar Products Events Calendar PRO events rss feed date missing

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #71972
    creativebridge
    Participant

    I have created my own file called ‘feed-events-rss2.php’ which sits in my theme directory. http://www.eblex.org.uk/events/feed/

    I then put the following code in my theme’s functions.php as shown in the thread https://theeventscalendar.com/support/forums/topic/recurring-events-rss-feed/.

    [code]
    remove_all_actions( ‘do_feed_rss2’ );
    add_action( ‘do_feed_rss2’, ‘event_feed_rss2’, 10, 1 );

    function event_feed_rss2( $for_comments ) {
    $rss_template = get_template_directory() . ‘/feed-events-rss2.php’;
    if( get_query_var( ‘post_type’ ) == ‘tribe_events’ and file_exists( $rss_template ) )
    load_template( $rss_template );
    else
    do_feed_rss2( $for_comments ); // Call default function
    }
    [/code]

    I have put in my feed-events-rss2.php where the event publish date currently is, the following:

    [code]
    echo mysql2date(‘D, d M Y H:i:s +0000’, tribe_get_start_date(‘Y-m-d H:i:s’, true), false);
    [/code]

    And now my date has disappeared altogether.

    Any ideas where i have slipped up please?

    Thanks

    #72103
    Barry
    Member

    Hi creativebridge – just a note first of all that, unfortunately, the forum is not a great venue for code. It’s always better to share code here via a service like Pastebin or Gist 🙂

    Unfortunately though, we could take a quick look (if you want to repost it – just so we can be sure we’re not missing anything), we are unlikely to be able to offer too much help with a customization like this one.

    #72475
    creativebridge
    Participant

    Hi Barry

    Thanks for taking a look here is the link to my pastebin http://pastebin.com/YH8kkeyT

    Thanks

    #72593
    Barry
    Member

    Hi creativebridge,

    If you take a look at tribe_get_start_date() you’ll note the date format should be passed as the third parameter, not the first.

    I hope that helps – but since this is very much a custom development issue we regrettably can’t help any further and so I will go ahead and close this thread.

    Thanks!

    #981540
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘events rss feed date missing’ is closed to new replies.