• Resolved ba95472

    (@ba95472)


    We are definitely aware of the interest in more robust RSS feeds; these have been one of the more commonly-requested features since we launched 2.0 and we’re looking into how we can integrate something very much along the lines of what you’re going for sometime down the road.

    — Rob La Gatta

    Is there anything happening with this? A feed that sorts by event date and includes description still much desired. Thanks!

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter ba95472

    (@ba95472)

    I’ve been working on this, but still no luck. The code to set events provided by Tribe (https://tri.be/how-to-add-events-to-your-rss-feed/) to modify the RSS to sort by event date (as opposed to when it was added to the calendar), doesn’t seem to work anymore.

    // Add Tribe Event Namespace
    add_filter( 'rss2_ns', 'events_rss2_namespace' );
    
    function events_rss2_namespace() {
        echo 'xmlns:ev="https://purl.org/rss/2.0/modules/event/"'."\r\n";
    }
    
    // Add Event Date to RSS Feeds
    add_action('rss_item','tribe_rss_feed_add_eventdate');
    add_action('rss2_item','tribe_rss_feed_add_eventdate');
    add_action('commentsrss2_item','tribe_rss_feed_add_eventdate');
    
    function tribe_rss_feed_add_eventdate() {
      if ( ! tribe_is_event() ) return;
      ?>
      <ev:tribe_event_meta xmlns:ev="Event">
      <?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?>
    
        <ev:startdate><?php echo tribe_get_start_date(); ?></ev:startdate>
        <ev:enddate><?php echo tribe_get_end_date(); ?></ev:enddate>
    
      <?php } else { ?>
    
        <ev:startdate><?php echo tribe_get_start_date(); ?></ev:startdate>
    
      <?php } ?>
      </ev:tribe_event_meta>
    
    <?php }

    Anybody have a fix? Thanks!

    Brook

    (@brook-tribe)

    Howdy again ba,

    Interesting. That snippets still works for me. Just added, saw these tags appear in my feed.

    Also, our RSS feed does have descriptions, as well as <content> by default. In addition, in a recent version we made it sort by start date instead of pubdate.

    Are you wishing for something different? If so, perhaps you could elaborate on what that is. If it’s a new idea then please suggest it as a feature. If not, then maybe vote on the existing ideas. Features forum: https://tribe.uservoice.com/forums/195723-feature-ideas

    Cheers!

    – Brook

    Thread Starter ba95472

    (@ba95472)

    Thanks for the reply Brook. What I’m finding happening (as well as other people reporting on this issue, like this guy https://tri.be/support/forums/topic/integrating-events-calender-rss-with-main-rss-ordering-by-publish-date/) is that the feed sorts by post date (not event date) in Feedly as well as the default WordPress RSS plugin in the Widgets area. In other words, the feed https://example.com/events/feed will show a different order than the Events Calendar Upcoming Events widget. Can you confirm that that is not the case? Thanks again!

    Thread Starter ba95472

    (@ba95472)

    Hi Brook.
    I just checked again on another site, unfortunately same thing. Please test the default RSS WordPress widget plugin using the /events/feed URL and The Events Calendar widget and let me know if they sort the same. On every site I’ve tested so far it does not, regardless of whether I use (or don’t use) the snippet. Thanks.

    Thread Starter ba95472

    (@ba95472)

    Hi Brook,
    Just checked Tribe’s demo site, same problem, order is not the same:
    https://wpshindig.com/events/feed
    https://wpshindig.com/events/list/

    Thread Starter ba95472

    (@ba95472)

    Hello? Anybody there?

    Brook

    (@brook-tribe)

    Howdy ba95472,

    I am sorry. It’s not fun to feel ignored. We have a put up a notice in as many places as we can here on .org letting users know that we ordinarily do a pass once each week in the free forums, but it can still be easy to miss.

    If you are waiting on a response from a Tribe rep, it is likely to come the following week except in rare circumstance. If you need faster support you might consider a PRO license, which includes our PRO forums that are monitored by multiple people every day. Responses times are generally quite a bit less than 24 hours during weekdays.

    If you go to yourwebsite.com/events/feed/ you should find it to be in the same order as it is on wpshindig, assuming you are running the latest version which I believe you said you are in another topic. That is the feed that our plugin basically generates. It is the one we have control over. Any thing which imports that feed directly will see the order like that. But other plugins, widgets, and what not might order by publish date instead. In order to get them to sort differently, you would need to figure out how to modify their sort order. Then you could cast the meta key _EndDate as a date and sort by it instead. Tha’s probably one of the harder things to tackle, so you will need a good bit of PHP and some SQL under your belt for it to go smooth.

    Cheers!

    – Brook

    Thread Starter ba95472

    (@ba95472)

    Hi Brook.
    Have you tried the two links above? They don’t sort the same. For https://wpshindig.com/events/feed I get

    WordPress Developers Meetup
    Milwaukee WordPress Wednesday
    WordPress Santa Cruz

    For https://wpshindig.com/events/list/

    WordPress Topanga
    WordPress Santa Cruz Meetup
    WordPress Maui Meetup

    Brook

    (@brook-tribe)

    I am sorry, for me they appear to be sorting identically. It is possible due to caching that they might sort differently for a spell, but I am not aware of any other reason for a discrepancy there unless you have selected a filter. By design they should both sort by the event start date.

    Cheers!

    – Brook

    Brook

    (@brook-tribe)

    One other thing to note, it is possible your RSS viewer is sorting by its own settings instead of the default pubdate.

    – Brook

    Thread Starter ba95472

    (@ba95472)

    Wow Brook, this is crazy. I certainly haven’t done anything with the default RSS widget that ships with WordPress or Feedly or any other RSS reader. They all sort for me as above. Can anybody else test this to help us confirm what’s going on?

    Thanks for your patience Brook!

    Thread Starter ba95472

    (@ba95472)

    Here’s a couple of screenshots
    https://imgur.com/GU8Mi6Q

    View post on imgur.com

    Brook

    (@brook-tribe)

    Hello again ba95472,

    You are welcome for the responses. I wish I understood better why we are seeing different things. My only theory is that your RSS feed reader has its own sorting method or that it is viewing a cached RSS feed. Both could cause the order to at least appear to change. But to the best of my testing they always show the same order, even if the feed sometimes shows events that have already passed due to caching

    Thanks for posting!

    – Brook

    Thread Starter ba95472

    (@ba95472)

    Thanks again Brook. So just to double-check, when you put the two links in Feedly they sort the same?

    Brook

    (@brook-tribe)

    I’m not using feedly. I am viewing the raw unprocessed feed. Because once it runs through feedly, the sort order is now up to feedly and not our plugin.

    Thanks for waiting for a response over the holidays. We’re catching up. Cheers!

    – Brook

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘RSS Feed update?’ is closed to new replies.