• Manu-PB

    (@manu-pb)


    Great plugin, thanks.
    Is there a way to send an automatic newsletter with multiple poste types : post AND project AND event?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Manu-PB

    (@manu-pb)

    I was able to merge post types with a tweak of the function: field_select_post_type( $params = array() ) from file wysija-newsletters/helpers/articles.php.

    After the options for posts and pages, I added the following line :
    $output .= '<option value="post,ai1ec_event"' . ( ( $value === 'post,ai1ec_event' ) ? ' selected="selected"' : '' ) . '>Post + Event</option>';

    The question is now: how to hook this function in order to keep this modification when I next update the plugin ?

    Thanks for help.

    • This reply was modified 8 years ago by Manu-PB.

    Hi,

    Unfortunately this customization will be overwritten everytime we release an update and there isn’t a simple way to achieve this.

    Best to keep this customization at hand so you can replace it when there’s an update.

    Thread Starter Manu-PB

    (@manu-pb)

    Thanks for your answer.
    So I suggest you a new feature for future versions : add “multiple” to the select box, and build the array accordingly. I guess it is a five minute work.
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple post types’ is closed to new replies.