Newsletter archive
-
There’s a small bug in the archive. If there’s an automated newsletter (eg each day, week or month) then the archive lists at the end the next activated newsletter, which of course hasn’t yet been sent and has no date.
It doesn’t seem possible to use the example code in Shortcode for Archive: Filters to remove this unwanted item, as it’s not possible to change the subject there.
But it can be done in wysija-newsletters/modules/archive_std/archive_std_view.php.
The code below works for me but please could whatever code is best be incorporated into the next update?
Change line 120 to
if ($newsletter->sent_at!=false){echo apply_filters('mpoet_archive_date', $newsletter->sent_at);}
and line 126 to
if ($newsletter->sent_at!=false){echo apply_filters('mpoet_archive_subject', $newsletter);}
- The topic ‘Newsletter archive’ is closed to new replies.