Recurring events rss feed

Home Forums Calendar Products Events Calendar PRO Recurring events rss feed

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #18571
    Jonah
    Participant

    Yeah 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,
    Jonah

    #18579
    Jeremy
    Participant

    Awesome, 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.

    #18585
    Jonah
    Participant

    Guys, 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
    }

    #18666
    David
    Participant

    Not 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.

    #18703
    Jonah
    Participant

    David, 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.

    #19313
    David
    Participant

    I’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.

    #19325
    Jonah
    Participant

    Hi David,

    I’m not sure I follow what you are saying. Can you provide an example?

    #19356
    David
    Participant

    http://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?

    #19393
    Rob
    Member

    Hey 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.

    #19423
    Jeremy
    Participant

    Just 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/3941187

    Just 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/

    #19450
    Jonah
    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,
    Jonah

    #976916
    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 12 posts - 16 through 27 (of 27 total)
  • The topic ‘Recurring events rss feed’ is closed to new replies.