Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: bp_activity_sent_mention_email

@finzend

Participant

UPDATE: well, I found the problem. It seems to be a bug(?) in bp_get_email. That function should get the email-template from the main/root blog. When another blog is active, it switches to the rootblog for the template-query. That switch (switch_to_blog) doesnt seem to work.. So it only works on the rootblog, not on the other blogs (multisite).

Next I checked the difference between the queries on the rootblog and the other blogs. The difference is in the Post_type statement:
– On rootblog: wp_posts.post_type IN (‘bp-email’)
– On other blogs: wp_posts.post_type IN (‘post’)

The bp_get_email_post_type and bp_get_email_tax_type do return the right values when switched to the rootblog, but maybe there’s some filter on WP_Query where the posttypes are verified or something?

Skip to toolbar