lonk to support doc produces not found

Home Forums Calendar Products Events Calendar PRO lonk to support doc produces not found

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #934145
    Bill
    Participant

    Trying 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

    #934693
    Geoff
    Member

    Hi 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!
    Geoff

    #934776
    Bill
    Participant

    Yeah, 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.

    #934787
    Geoff
    Member

    Awesome! 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!
    Geoff

    #934802
    Bill
    Participant

    This reply is private.

    #934806
    Geoff
    Member

    Absolutely, that’s correct. 🙂

    #936831
    Bill
    Participant

    OK, 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: 12

    In 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 }
    #936832
    Bill
    Participant

    This reply is private.

    #936906
    Geoff
    Member

    Hi 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!
    Geoff

    #936919
    Bill
    Participant

    I don’t know where that came from.

    #936921
    Bill
    Participant

    This reply is private.

    #936929
    Geoff
    Member

    Sure! 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!
    Geoff

    #939774
    Geoff
    Member

    Hey 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

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘lonk to support doc produces not found’ is closed to new replies.