WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Sitewide Tags Pages
Subscribe2 - or add custom meta (6 posts)

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 3 years ago #

    This plugin, when combined with Subscribe2, always sends out two emails for every post. The solution as presented by Subscribe2's author is to add:

    add_post_meta($p, "s2mail", "no");

    after inserting the post. Would you be willing to include this in a future release? (as I obviously dislike hacking plugins)

    If you don't want to mod your plugin to work better with another, which is understandable, would it be possible to not just copy, but SET, post meta with the plugin option on the Options page? There's already a box for copying postmeta. What about adding the ability add meta that can be set as well?

    Example:
    If you want to copy custom fields with posts. One custom field per line.
    my_foo_meta
    s2mail=no

    my_foo_meta would just be copied, s2mail would be set to no?

    Thoughts?

    Thanks!

    http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    Why not turn the subscribe2 off on the tags blog?

  3. Jason Lemahieu (MadtownLems)
    Member
    Posted 3 years ago #

    Rom - I've tried that.

    Unfortunately, it seems the architecture is such that while running as blog1, if I switch_to_blog(2), code is still run with blog1's plugins active. :/

  4. Jason Lemahieu (MadtownLems)
    Member
    Posted 3 years ago #

    Also unfortunate is that even adding what the Subscribe2 author suggests doesn't help if you're sending the emails right away ><

    So what I suggested above, while maybe helpful for something/someone else, wouldn't fix my issue.

    Would love to hear some other suggestions as to how to handle this...

  5. Jason Lemahieu (MadtownLems)
    Member
    Posted 3 years ago #

    So - I've been unable to resolve this. In fact, I've found more problems with it. It gives unexpected/undesired behavior with pretty much any plugin that does something on a post being published. It will duplicate any automated tweeting, for example.

    Is this just the nature of the beast?

    Is it possible that this plugin should NOT use wp_insert_post, and instead sneak the post in manually with sql? I know it sounds awful, but it seems like it would accomplish the expected behavior I can't seem to get otherwise.

    Any ideas?

  6. It will duplicate any automated tweeting, for example.

    Is this just the nature of the beast?

    Yes, especially if you're using auto-post tools.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic