Home Forums Newsletter Plugin Support No posts loaded

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16808
    H G
    Participant

    So, just installed the plugin and bought the license. But for some unknown reason not a single post will show up when creating a newsletter.
    I’ve tried different themes, republishing an old blogpost to a new date, using no filters, checking a checkboxes and setting post limit to 100. Nothing.
    Tried enabling the debug log, but that’s not very helpful because it says nothing about loading posts.

    I use WP 4.2.2 with Woocommerce 2.3.9. Also WPML is in use, but I’m not planning to send multilingual newsletters, so the posts should just be loaded in the current language.

    Any help would be appreciated.

    #16809
    H G
    Participant

    Alright, looks like it is WPML messing around.
    For any users experiencing this in the future, here’s what I did:

    On top of theme.php, you need to manually switch to the language you want to load in your template. Change this:

    global $newsletter, $post;

    to

    global $newsletter, $post; $sitepress;
    $sitepress->switch_lang('nl');

    where ‘nl’ is the code of the language you want to load.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.