Forums

Subscribe2
[resolved] Subscribe from events (9 posts)

  1. Erling
    Member
    Posted 6 months ago #

    Thanks for a nice plugin. We love it on the page I'm administering (http://ishojvolley.dk).
    We also use Events Manager - and a wish could be that the subscriber not only get news when we have new posts and pages, but also new events. In other words: That the 'Subscribe2' can pick from the events-database also.
    I know this is future - but nevertheless, now I have said it - and this feature would no doubt make 'Subscribe2' the second to none
    choice for many thousands.
    Best regards from Denmark.

    http://wordpress.org/extend/plugins/subscribe2/

  2. MattyRob
    Member
    Posted 6 months ago #

    @Erling,

    Currently it seems that Events Manager uses a custom database table and they are in the process of implementing and API to allow plugin extension.

    Once this is firmed up, what you are asking for may well be possible.

  3. Erling
    Member
    Posted 4 months ago #

    Back to the issue: Now the plugin "Events Manager" is released in a new version 5.0. I installed and it's working fine. The big news is that events are treated like custom WP posts.
    Does that give the possibilities we where talking about above?
    Best regards
    Erling

  4. basememara
    Member
    Posted 4 months ago #

    Yes, it works with Events Manager 5+. In your theme's function add this:

    /**
    * Custom post type for Subscribe2
    */
    function custom_s2_post_types($types) {
    $types[] = 'event';
    return $types;
    }
    add_filter('s2_post_types', 'custom_s2_post_types');

  5. Erling
    Member
    Posted 4 months ago #

    Thank you so much.
    It works !!

  6. Erling
    Member
    Posted 4 months ago #

    Although there is a problem: For a normal post I have the possibility to uncheck that news are sent out for this post.
    I miss this possibility for the event - that I can shoose NOT to create news for posting an event.
    Do you have any suggestions?

  7. basememara
    Member
    Posted 4 months ago #

    I miss that function as well :( Maybe we have to manually add the custom field for the custom post type? I am not sure, but I am really hoping Subscribe2 has better integration with custom post types. I would expect to enter a comma-delimited list of custom post types from the settings section of Subscribe2 instead of hacking a php file. Also subscribers should be able to choose which post type they want to subscribe to.

    If anyone has a solution for excluding custom post types with a checkmark, please let us know! :)

  8. Erling
    Member
    Posted 4 months ago #

    I just realized that when I added the above code in the functions.php-file it sends out only the event, not the new post. While we are waiting for at better plugin, do you have a good advice to get the subscribe2 to pick BOTH a new Event AND a nem post for the list to be send out?

  9. MattyRob
    Member
    Posted 4 months ago #

    @Erling & @basememara,

    In order to add the custom field box to override post notification you have to know the slug name of the added page. It's the fourth parameter passes to the add_meta_box() function.

    For that reason it would be easier to extend the Events plugin to call the Subscribe2 code rather than the other way around. Either that or write your own custom plugin that adds the code to the Events page once you've found the slug name.

    @Erling,

    If notifications for new posts are not sending check all of your settings and make sure you are not blocking them for some reason (like and excluded category for example). Try disabling the custom post code and see if it works without it too as I can't think why that code would stop it working.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags