RSS tutuorial code improvement

Home Forums Calendar Products Events Calendar PRO RSS tutuorial code improvement

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #80682
    Kevin
    Participant

    The tutorial to add events to RSS feeds (https://theeventscalendar.com/how-to-add-events-to-your-rss-feed/) could use one improvement. Posting to the forum because comments on that page are closed.

    As written, the code to add event date to your RSS feed will add a start date to event posts (as desired), but also adds a start date to regular posts, which makes no sense. Clearly tribe_get_start_date() returns now when it is not an event post.

    I suggest you modify the tutorial and encapsulate the with the conditional “if (tribe_is_event())”. That should remove the nonsensical event dates on regular posts

    #80716
    Barry
    Member

    That’s a great suggestion Kevin – we’ll log that as something in need of further attention 🙂

    #106765
    Barry
    Member

    Apologies for the delay, Kevin – this was sitting fairly far down on the to-do list but we did finally get around to updating it. Thanks again for the suggestion!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘RSS tutuorial code improvement’ is closed to new replies.