Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi Usayd,

    There is no feature for this built in. You will need to find a 3rd party solution to help you with this. Something like this plugin might help: https://www.ads-software.com/extend/plugins/feedwordpress/

    Regards,
    Jonah

    Thread Starter Usayd

    (@usayd)

    Hi Jonah

    Thanks for that, the feed plugin works great.

    Unfortunately the calendar doesn’t output the event dates in the RSS feed. Do you have any tips for how to customise it so that it does?

    Thanks
    Usayd

    Thread Starter Usayd

    (@usayd)

    I found how to customise the RSS feed output here: https://tri.be/faqs/how-can-i-customize-the-events-rss-feed/

    Thread Starter Usayd

    (@usayd)

    Can you advise how I can use the start and end dates from the RSS feed in the event post?

    <ev:startdate>May 1, 2013 8:15 pm</ev:startdate>
        <ev:enddate>June 30, 2013 9:30 pm</ev:enddate>

    I tried using _EventStartDate custom field from here https://tri.be/faqs/i-need-a-list-of-all-the-custom-fields-events-calendar-pro-uses/ but I seem to be missing something.

    Thanks

    Hi Usayd,

    What do you mean use the start and end dates from the feed in the event post? The event posts should already display the start and end dates automatically.

    – Jonah

    Thread Starter Usayd

    (@usayd)

    Hi Jonah

    I’m importing the feed into another version of the same plugin on a different site.

    To include the event start and end dates in the feed I’ve used the method cited above, however I don’t know how to use these values to populate the dates that are imported on the events on the other side. It is just using the current date as the default values.

    Thanks

    Oh gotcha Usayd, unfortunately no I don’t know how you would do this. You’d need to somehow import the custom fields for _EventStartDate and _EventEndDate and populate them accordingly for each event imported, but I’m not sure how you would do this in the feed plugin. You’ll need to work on figuring it out on your own. If you come up with anything, please let us know. I’m sure it would be something helpful for others.

    Thanks,
    Jonah

    Thread Starter Usayd

    (@usayd)

    Hey Jonah

    I’ve almost got it all working and will post up the solution once complete. The only issue remaining is outputting multiple start dates for recurring events (to create multiple events on the other side).

    Ideally I need a global var (like tribe_get_start_date) that gives all of the dates linked to the single event ID. Do you know how I could achieve this? The logic would be something like:

    if (tribe_is_recurring_event($postid)) {
    recurring i++
    echo $recurring_dates[i]
    }

    Hi Usayd,

    That’s great to hear! Try taking a look at the tribe_get_start_date() function in /wp-content/plugins/the-events-calendar/public/template-tags/date.php on line 25. There may be some clues there as to how the dates are retrieved for recurring events.

    – Jonah

    Thread Starter Usayd

    (@usayd)

    Hi Jonah

    I still can’t figure out how to use your existing hooks to access an array of start dates attached to a single ID. The function tribe_get_start_date() never returns an array and I can’t use the get_posts_meta function as it isn’t global.

    The closest thing I found to what I’m looking for is the function on line 635 on the-events-calendar.class.php

    Any thoughts?

    Thanks
    Usayd

    Hi Usayd,

    Unfortunately no, I don’t have any other ideas and we do not have the resources available to be able to help you with this. You’ll either need to buy a Pro license and possibly get some more support with the issue or hire someone to help you with it.

    Regards,
    Jonah

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Sync across WordPress installations’ is closed to new replies.