Home › Forums › Calendar Products › Events Calendar PRO › events rss feed date missing
- This topic has 4 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
October 21, 2013 at 8:51 am #71972
creativebridge
ParticipantI 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
October 21, 2013 at 3:46 pm #72103Barry
MemberHi 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.
October 23, 2013 at 4:51 am #72475creativebridge
ParticipantHi Barry
Thanks for taking a look here is the link to my pastebin http://pastebin.com/YH8kkeyT
Thanks
October 23, 2013 at 4:16 pm #72593Barry
MemberHi 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!
July 7, 2015 at 6:29 am #981540Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘events rss feed date missing’ is closed to new replies.
