WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Not sending email for new pages (3 posts)

  1. ctcdesign
    Member
    Posted 1 year ago #

    I was spinning my wheels on this all day, I tested on a shared hostgator account and my own VPS on wp versions 3.4.1 and 3.4.2 (3 different themes including twentyeleven) with the same results, no notifications for newly published pages.

    I fixed it by changing these lines in /classes/class-s2-core.php

    if ( $post->post_type == 'page' ) {
    				$post_cats_string = get_all_category_ids();
    			} else {
    				$post_cats_string = implode(',', $post_cats);
    			}

    to this:

    if ( $post->post_type == 'page' ) {
    				$post_cats_string = implode(',', get_all_category_ids());
    			} else {
    				$post_cats_string = implode(',', $post_cats);
    			}

    This fixed the problem for me :-) YMMV

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

  2. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @ctcdesign,

    Thanks, that looks like a good fix, I'll patch that into the code.

  3. ctcdesign
    Member
    Posted 1 year ago #

    Your welcome mattyrob, glad it helped ;-)

    Charles

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags