Home › Forums › Calendar Products › Events Calendar PRO › Recurring events rss feed
- This topic has 26 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
May 2, 2012 at 11:55 am #18571
Jonah
ParticipantYeah like we’ve mentioned the code pasting is not ideal in the forums right now. Please use Pastie, Pastebin, GitHub Gists or whatever other code pasting service you want outside the forum and paste the link to your code here.
Thanks,
JonahMay 2, 2012 at 2:32 pm #18579Jeremy
ParticipantAwesome, thanks David. Modifying wp-content/feed-rss2.php means the changes could get clobbered on the next WordPress update. I made a copy of the file with the changes and symlinked to it so it’s easier to restore if that happens.
May 2, 2012 at 4:10 pm #18585Jonah
ParticipantGuys, read: http://codex.wordpress.org/Customizing_Feeds
It’s fairly easy to create your own versions of the RSS templates by removing the feed actions and adding your own:
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() . '/feeds/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
}
May 3, 2012 at 7:07 pm #18666David
ParticipantNot sure how creating a custom feed template would help. What is needed is for events created by The Events Calendar Pro to populate the post_date and post_date_gmt fields in the database with the event start date rather than the actual post date.
May 4, 2012 at 11:50 am #18703Jonah
ParticipantDavid, in the custom feed template you’d be able to customize the feed so that event posts use the event date instead of the post date via our template tags. We wouldn’t change the actual post date because this should be kept separate from the event date.
May 17, 2012 at 9:00 am #19313David
ParticipantI’ve rundown a problem I am having using the feeds to populate an automatic posting to facebook uss rss graffiti. All the subsequent events of a recurring post have the same guid. If this could be changed in 2.11 to assign unique guids to recurring events, it would be a great help.
May 17, 2012 at 12:06 pm #19325Jonah
ParticipantHi David,
I’m not sure I follow what you are saying. Can you provide an example?
May 17, 2012 at 5:46 pm #19356David
Participanthttp://pastie.org/3928221
If you view the code from the rss feed linked above, you will see that all instances of the recurring event ‘Phillies Coors Special’ have the same guid tag indicating the same post#. Would it be possible to generate unique posts for each occurence of a recurring event?May 18, 2012 at 5:05 pm #19393Rob
MemberHey David. Jonah’s out for the afternoon but will be checking support over the weekend, so I’ve asked him to take another look here at that point. Stay tuned and thanks for your patience so far.
May 20, 2012 at 12:11 pm #19423Jeremy
ParticipantJust wanted to follow up on the beginning of this conversation about getting correct event dates into RSS feeds. I ended up just extending the RSS output with the proposed Events module namespace and injecting ev:startdate and ev:enddate elements into my feeds (for events only obviously).
Here is the code I added to the theme functions.php file to make it work:
http://pastie.org/3941187Just so the picture is clear, I have a specific widget on another website that uses SimplePie to pull the extended feed from WordPress/ECP and uses the ev:startdate and ev:enddate values instead of the pubDate element.
If anyone cares to see it in action, it’s the “Today at the Moon” block on http://bluemoonrehoboth.com/
May 21, 2012 at 10:41 am #19450Jonah
Participant@Jeremy, that’s brilliant, thanks for sharing!
@David, you’re going to want to modify the RSS template to use: tribe_get_event_link() instead of get_permalink() or the_permalink()Cheers,
JonahJuly 7, 2015 at 6:20 am #976916Support 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 ‘Recurring events rss feed’ is closed to new replies.
