Custom post type
-
Hi
I’m using two plugins: Subscribe2 and Events Manager. I use code below to use custom post type created by events manager, but subscribe2 still sends me email with posts created by wordpress itself (i.e. “Hello World!”) instead of posts (events) created by events manager plugin.
The code I’m traing to use in my theme function.php file is:
function my_post_types($types) {
$types[] = ‘event’;
return $types;
}
add_filter(‘s2_post_types’, ‘my_post_types’);Instead of “event” I also try to use php constant “EM_POST_TYPE_EVENT” but it also doesn’t work.
What I’m missing here, maybe some option in settings of subscribe2? I have checked “send emails for pages” to yes and in settings panel of Subscribe2 I can see my events created by events manager but still it doesn’t send me proper post when I click “send email preview” or when I create time schedule.
Thx for the help!
- The topic ‘Custom post type’ is closed to new replies.