Forum Replies Created
-
AuthorPosts
-
May 30, 2014 at 11:56 am in reply to: RSS to Email : Adding Event date(s), Location & Cost to RSS Content? #191505websterParticipant
I haven’t tested this, yet:
http://pastie.org/9240347May 30, 2014 at 11:42 am in reply to: RSS to Email : Adding Event date(s), Location & Cost to RSS Content? #191454websterParticipantI’m reviewing this article as a starting point, it deals with custom fields, but it could be tribe data instead:
http://www.paulund.co.uk/add-custom-fields-to-rss-feedMay 30, 2014 at 11:31 am in reply to: RSS to Email #2, ( event meta missing with maybe_teardown_tribe_order_filter() #191425websterParticipantMay 30, 2014 at 11:24 am in reply to: RSS to Email #2, ( event meta missing with maybe_teardown_tribe_order_filter() #191393websterParticipantThanks Barry,
I’m mistaken on ‘event meta’ working before. It was a event post that had pertinent info (dates and location) at the beginning of the actual post content. Sorry for my confusion. Also I DO see the start/end dates in the feed source – just not visible in the mailchimp rss template or other readers.I’m starting another thread on the topic of adding location, date, cost
to the RSS content…websterParticipantResolved.
websterParticipantBy 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 🙂
websterParticipanthttps://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’,websterParticipantHi 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!websterParticipantwebsterParticipantwebsterParticipantThanks Brook!
tribe_get_events(); looks helpful, I’ll look into that for other snippets.
Here’s what I ended up with for the sidebar code:<!– Recent Posts – Tribe Events –>
- <h3>Hot off the press</h3><?php $args = array(
‘post_type’ => ‘tribe_events’, // tribe events cpt
‘posts_per_page’ => 4,
‘offset’ => 0,
‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’,
‘post_status’ => ‘publish’,
‘suppress_filters’ => true );
?><ul class=”rec-events”>
<?php
$recposts = get_posts( $args );
foreach ( $recposts as $post ) : setup_postdata( $post ); ?> - “><?php the_title(); ?>
- <?php endforeach;
wp_reset_postdata();?><!– / rec-events –>
- <h3>Hot off the press</h3><?php $args = array(
-
AuthorPosts