Home › Forums › Calendar Products › Events Calendar PRO › RSS to Email – Feed ordering
- This topic has 9 replies, 2 voices, and was last updated 9 years, 11 months ago by Barry.
-
AuthorPosts
-
May 14, 2014 at 11:32 am #161163websterParticipant
Hi, I’m back again after some tooling with RSS and Mailchimp – RSS to email:
While I was hoping for a simple solution to get Jetpack subscriptions working with the events calendar:
https://theeventscalendar.com/support/forums/topic/jetpack-subscriptions/#post-109314I’ve taken your advice and looked into RSS to email. Mailchimp is set up, but it’s not posting the recent events… so back to EC…
If I grab the feed from /events-slug/feed/
It looks like the order is ‘upcoming events’.After adding the code in this link, so I may add events to my main feed,
It’s order is ? who knows? how it’s getting that!?
https://theeventscalendar.com/how-to-add-events-to-your-rss-feed/Is there a modification that will allow my to make my events feed in the order of – what’s new or recent posts?
I’d like it when someone adds a event to the site
to tell Mailchimp via RSS, but my RSS feed order is whack.May 14, 2014 at 12:17 pm #161190websterParticipantMay 14, 2014 at 12:36 pm #161210websterParticipantMay 15, 2014 at 9:08 am #162373BarryMemberThe RSS feed order will be by publication date (ordered newest to oldest), I believe. Is that not what you’re seeing / in what way is it whack?
May 15, 2014 at 9:30 am #162411websterParticipantHi there Barry,
Thanks for your reply!That’s exactly what I’m looking for, however, that’s not what I’m getting.
My home page has the ‘Hot off the press’ list in the sidebar, by publication date:My feed however seems to be neither by post date, or any other discernible order. I just visited ‘Events’ the list ( in wp-admin edit.php?post_type=tribe_events). It appears there as the feed does. I thought at first it was reverse order of publication, but there are also published dates out of line with that theory further down the list.
Puzzling!!http://cobworkshops.org/feed
Ex feed: http://rss.atimofeev.com/read.php?url=http%3A%2F%2Fcobworkshops.org%2FfeedI want to stop short of hacking the wp feed files if I can, cuz god knows I don’t want to replace that every update, that’s not sustainable.
Perhaps there’s a hook or function that can tell the feed how-to behave… I wish I were a php ninja!May 15, 2014 at 9:55 am #162448websterParticipanthttps://theeventscalendar.com/how-to-add-events-to-your-rss-feed/
If I were a php ninja I would try to tell the $args what to do, but my testing hasn’t been successful yet…$args = array(
‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’,May 16, 2014 at 8:04 am #163515BarryMemberI do apologize, you’re absolutely right – events are ordered according to event date (which is by design). Possibly though, for feeds only, you could avoid this with a further snippet:
add_action( 'pre_get_posts', 'maybe_teardown_tribe_order_filter', 60 ); function maybe_teardown_tribe_order_filter() { if ( is_feed() ) remove_filter( 'posts_orderby', array( 'TribeEventsQuery', 'posts_orderby' ), 10, 2 ); }
Does that help?
May 16, 2014 at 8:55 am #163548websterParticipantBy golly Barry, you made my week!
Yes it does help. The RSS order is by publish date now.
Now let’s see what MailChimp RSS-to-email does with this…If anyone want’s the code to add events to the main RSS feed (by publish date) see this compiled snippet:
http://pastie.org/9182085I request this page be updated to explain order as is and give the code option above: https://theeventscalendar.com/how-to-add-events-to-your-rss-feed/
Thank you very much Barry. I hope the universe smiles on you a lil extra this week 🙂
May 16, 2014 at 8:57 am #163563websterParticipantResolved.
May 16, 2014 at 10:38 am #163657BarryMemberAwesome, thanks for confirming and I’m glad that all worked out 🙂
I’ll go ahead and close this thread (and we’ll get that tutorial updated). Last but by no means least, if you happened to have a moment and wished to post a review of The Events Calendar we’d love to hear your thoughts. Thanks again!
-
AuthorPosts
- The topic ‘RSS to Email – Feed ordering’ is closed to new replies.