Home › Forums › Calendar Products › Events Calendar PRO › lonk to support doc produces not found
- This topic has 12 replies, 2 voices, and was last updated 11 years, 2 months ago by
Geoff.
-
AuthorPosts
-
January 17, 2015 at 2:48 pm #934145
Bill
ParticipantTrying to get events rss feed set up with feeders, but the link published as a solution to one previous query on this topic now only generates a 404.
https://theeventscalendar.com/how-to-add-events-to-your-rss-feed/
Please advise how-to for this.
thanks
January 19, 2015 at 7:55 am #934693Geoff
MemberHi there, Bill! Sorry about the link–some links got crossed after we relaunched the site and this seems to he one of them. You can find that tutorial here now:
https://theeventscalendar.com/knowledgebase/rss-feed/
Cheers!
GeoffJanuary 19, 2015 at 9:47 am #934776Bill
ParticipantYeah, i found that like right after I posted (LOL), thanks.
Another question is what can I put in one of those snips, like the middle one(?) to select only a specific event category be sent to feed? I only want o send along “featured events” not every single one.
January 19, 2015 at 10:02 am #934787Geoff
MemberAwesome! I’m glad you got the link you were after. 🙂
You’ll probably need to fiddle with that snippet a bit to get exactly what you’re looking for, but you can add a conditional statement in there to ensure that only events from a specific category end up in the feed.
For example, that might look something like this on Line 14 of the snippet:
if ( ! tribe_is_event() && is_tax('category-slug') ) return;Here is a good list of the conditional statement examples you could possibly use. 🙂
Cheers!
GeoffJanuary 19, 2015 at 10:51 am #934802Bill
ParticipantThis reply is private.
January 19, 2015 at 10:59 am #934806Geoff
MemberAbsolutely, that’s correct. 🙂
January 23, 2015 at 11:42 am #936831Bill
ParticipantOK, I did an experiment. I finally got my rss feed working between feeders and cloudflare which was the first problem.
Then circling back to the effort to add certain category of events to rss feed I added the snippet below to themes>magainze pro>>functions.php
So with that snippet feeders now show error
Our bots didn’t succeed to retrieve your feed for some time. This could prevent your FeedPress feed to be up to date.
[2015-01-23 19:39:24] xmlns:ev=”http://purl.org/rss/2.0/modules/event/”rn>
————^
Fatal Error 41: Specification mandate value for attribute rn
Line: 8
Column: 12In particular see
function events_rss2_namespace() { echo 'xmlns:ev="http://purl.org/rss/2.0/modules/event/"'."rn";So I have deleted that snippet and expect things to work again.
That said, can you see anything in the code that needs to be adjusted to not produce that error ?
Also please advise comments on how I set to grab just events of certain category
function tribe_rss_feed_add_eventdate() { if ( ! tribe_is_event() && is_tax('featured-events-calendar') ) return; ?> <ev:tribe_event_meta xmlns:ev="Event"> <?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?>FULL SNIPPET
/*-----------------------------------------------------------------------------------*/ /* Add Events to RSS Feed /*-----------------------------------------------------------------------------------*/ function add_events_to_rss_feed( $args ) { if ( isset( $args['feed'] ) && !isset( $args['post_type'] ) ) $args['post_type'] = array('post', 'tribe_events'); return $args; } add_filter( 'request', 'add_events_to_rss_feed' ); // Add Tribe Event Namespace add_filter( 'rss2_ns', 'events_rss2_namespace' ); function events_rss2_namespace() { echo 'xmlns:ev="http://purl.org/rss/2.0/modules/event/"'."rn"; } // 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() && is_tax('featured-events-calendar') ) 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 }January 23, 2015 at 11:43 am #936832Bill
ParticipantThis reply is private.
January 23, 2015 at 2:37 pm #936906Geoff
MemberHi Bill–thanks for following up!
This sort of custom development is beyond what we can support here in the forums, but right off the bat, that ' string in the first snippet looks different from the original snippet in the tutorial. Perhaps that’s throwing it off?
Cheers!
GeoffJanuary 23, 2015 at 2:55 pm #936919Bill
ParticipantI don’t know where that came from.
January 23, 2015 at 3:01 pm #936921Bill
ParticipantThis reply is private.
January 23, 2015 at 3:50 pm #936929Geoff
MemberSure! You can sent us an email (support [at] theeventscalendarpro.com) and we’d be happy to send you a list of freelancers who may be able to help out.
I’ll leave this thread open a little while longer to see if anyone else from the community decides to chime in.
Cheers!
GeoffFebruary 3, 2015 at 10:10 am #939774Geoff
MemberHey there, Bill! This thread’s been quiet for a while, so I’m going to go ahead and close it. Please feel free to start a new thread if you need anything else and we’d be happy to help you out. 🙂
Cheers!
Geoff -
AuthorPosts
- The topic ‘lonk to support doc produces not found’ is closed to new replies.
