Support » Plugin: Events Manager » BP Activity not showing picture or excerpt when Event published

  • Resolved daveywood

    (@daveywood)


    When a new event with feature image is published, the entry in the BP Activity stream is just a notice that a new event is publsihed. Other posts show a cut down image of the featured image and an excerpt of the first paragraph of the post. Does Events manager do this at all? If so, how do I switch this on?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    at the moment, you need to hook into em_event_save filter; you can see this in action under wp-content/plugins/events-manager/buddypress/bp-em-activity.php

    I have absolutely no idea what you mean by hook into. I can find the file but please tell me what I should write and where. IANAP!!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    On that PHP file, you can see how EM records and uses bp_em_record_activity and hooking into em_event_save filter so that every event posting will be recorded.

    for feature image you can try $EM_Event->image_url and $EM_Event->post_excerpt for event excerpt. For more information, you can check wp-content/plugins/events-manager/classes/em-event.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.