Forum Replies Created
-
AuthorPosts
-
BillParticipant
This reply is private.
BillParticipantI have got this to work per the rss-feed post
//* ADD TRIBE FEATURED EVENTS TO RSS 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' );
I know support can’t help anymore, but if anyone can please give me clue about how to add something like
if ( ! tribe_is_event() && is_tax('featured-events-calendar') ) return;
So I can have only a certain category of events be added instead of all, then I can have just important events go to feed rather than all and recurring.
Any help from the TEC community would be greatly appreciated.
BillParticipantThis reply is private.
BillParticipantI don’t know where that came from.
BillParticipantThis reply is private.
BillParticipantOK, 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 }
BillParticipantThe part of main snip is causing problems for feedpress
function events_rss2_namespace() {
echo ‘xmlns:ev=”http://purl.org/rss/2.0/modules/event/”‘.”rn”;========
>>>>
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 00:09:41] xmlns:ev=”http://purl.org/rss/2.0/modules/event/”rn>
————^
Fatal Error 41: Specification mandate value for attribute rn
Line: 8
Column: 12
<<<<<BillParticipantAhhhh…scales have fallen from my eyes.
BillParticipantI’ve checked screen options and there are none available. All that shows is option for how many events per page.
BillParticipantThis reply is private.
BillParticipantYeah, 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.
BillParticipantgot it
[event_embed event=”slug”
works
BillParticipantTrying to get in touch with Barry on how to embed single event. Tried messaging at Stack as worldviewpr.
BillParticipantThank you George for your reply. My goal is to not have to make two duplicating posts one as event and one as post. As
1. I don’t use normal loop, but the Featured Posts widget in Genesis, I have been scrounging for a way to achieve this goal with same look and feel as normal post.
2. I will look into the theme guide soon.
3. I have tried checking the box, but then I am not using the loop on front page as blog, but as a news page by category. As well there are some events that are worthy of front page and repeating networking events e.g. that do not, so I need to be able to select by some category.
EVENTS ROCKET sounds like just what I need, and I will check it out. Thanks for the clue.
4. I’d be happy to set up an admin account for you so you can to create the issue I have when trying to apply filters to event list widget. Send me an email address I can assign for user Tribe-Support, and I will set that up, thank you.
BillParticipantThis reply is private.
-
AuthorPosts