• My wordpress site uses static pages instead of posts. I wish to send email newsletters for every new page published, but unable to find out how. Is there anyway I can change it in the scripts or settings to make this work?

    I guess I need to set the category also working. I added another plugin which sets category to the pages, but still the email subscription is not working for new pages published.

    Any help would be great!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Sorry. At this moment, Email Subscribers doesn’t work with Pages.

    Thread Starter RockSea

    (@roxymathew)

    Hey Malay, thanks for a quick response. I understand that the plugin doesn’t support Pages out of the box. But do you think there is an easy hack which I can do in the scripts?

    Thread Starter RockSea

    (@roxymathew)

    Okay, I found a way out. I see that there were many here who are looking for a working subscription for new “pages” published. Here you go:

    Go to /email-subscribers/includes/db/class-es-db-notifications.php in the plugin folder.

    Comment the lines for the following IF LOOP. Currently, this is lines 31-52
    if ( $post_type == "post" ) { }

    This takes care of the post_type(page) and also the category factor (pages don’t have categories). I was almost moving into a different plugin, but this hack fixes it.

    —————-
    The above hack will remove the option for selecting categories. If you want that to work, you can add the “Add Pages to Categories” plugin and then simply change the post_type to “page” in the above line (or include both page and post with a boolean operator). When you publish a new page, you need to remember to select the category though.

    • This reply was modified 5 years, 11 months ago by RockSea.
    • This reply was modified 5 years, 11 months ago by RockSea.
    Thread Starter RockSea

    (@roxymathew)

    Will be great to have this option in a future release. Plugin Contributors? @malayladu ?

    Hi @roxymathew

    Thanks for the quick workaround.

    We have noted down your request and we will consider to implement this in the future release.

    Thread Starter RockSea

    (@roxymathew)

    @malayladu Let us know if this feature will be included soon!

    @malayladu Another request for this feature. It’s just what I’m looking for.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘subscription for new static pages’ is closed to new replies.