Forum Replies Created
-
AuthorPosts
-
July 25, 2013 at 8:43 am in reply to: tribe_get_start_date() not working (or it was working in v2 and it’s not in v3) #57093
Jeremy
ParticipantAh thanks! That mysql2date() call was definitely screwing it up. That got me on track. Here’s what I ended up using so the pubDate is in the proper format:
echo tribe_get_start_date($post, false, ‘D, d M Y H:i:s -0004’);
Also, in case anyone from the future finds this, I have a couple actions registered that add the event start and end dates into the feed output in rss:ev and xCal formats. Here are those:
July 25, 2013 at 8:14 am in reply to: tribe_get_start_date() not working (or it was working in v2 and it’s not in v3) #57085Jeremy
ParticipantI’m sure this has something to do with recurring events. I know there have been lots of issues with this. I just need a way to get the date for the next upcoming event in the recurring event entry. As you can see from the code, I just need to output a feed that lists today’s events only, and they are usually going to be recurring events.
Jeremy
ParticipantStop the presses. Well I was fairly certain I had the most recent update the other day when I started this thread, when I looked today there was a plugin update available for 3.0.2. Appears to have fixed my issue. Sorry for the trouble.
Jeremy
ParticipantThanks Neil. I didn’t actually customize anything. V2 was working just fine along with WP-Member (http://wp-member.com/) but when I updated to V3 things started getting weird. If I disable, then re-enable The Events Calendar, the content from categories marked as Guest level via WP-Member appear to visitors that are not logged in (as it should), but as soon as I edit a post or category or event (while The Events Calendar is active) the Guest level content stops appearing to non-logged in visitors.
Jeremy
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/
Jeremy
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.
Jeremy
ParticipantThat’s disappointing. I expected that the dates on events in the RSS feed would be correct, that seems basic. Rob, can you point out (or get a developer to point out) the file that builds the RSS feed for events?
-
AuthorPosts
