Ive set up

Hi,

Ive set up an autoblog plugin on my blog with 2 feeds.

1. The first feed (http://chillin.sk/feed/) is only showing me short excerpt, even though I have set "use full post" in the feed settings. Please see the screenshot of my settings here:
https://www.dropbox.com/s/49cwfqxetagr2a6/Screenshot%202016-09-18%2014.59.18.png?dl=0

2. The 2nd feed (http://slovenskyviral.com/feed/) is importing a full post, however is adding a "this post first appeared on...." at the end of the article, even though I left the referrer option empty. Here is a screenshot of my setting: https://www.dropbox.com/s/0hwjok49slyr2if/Screenshot%202016-09-18%2015.07.58.png?dl=0

Its very strange almost as if the plugin was ignoring my settings.

Thanks for a swift reply.

Jozef

  • Luís

    Hi Jozef ,

    Hope you're doing well today!

    Regarding to your questions:

    1) Auto Blog only pull the content of the RSS feed. If you check the feed, it only have the excerpt, so there is no way to Auto Blog to import the full post.

    To be able, the feed needs to have the post full content.

    2) The phrase and link you mentioned is inside of each feed entry content:

    "the post first appeared on...."

    If you check the feed source code, you will see that "text" inside of each entry content, so, when Auto Blog pulls the posts, automatically import it too.

    This is not a settings that Auto Blog is not respecting or something that we can avoid, unfortunately.

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

  • Luís

    Hi Jozef ,

    Hope you're doing well today!

    As suggested by my teammate Panos, can you try this code in your theme functions.php?

    add_filter( 'autoblog_pre_post_update', 'wpmudev_rmp_from_feed', 13, 3 );
    add_filter( 'autoblog_pre_post_insert', 'wpmudev_rmp_from_feed', 13, 3 );
    function wpmudev_rmp_from_feed(array $data, array $details, SimplePie_Item $item) {
        $data['post_content'] = preg_replace('~(.*)<p[^>]*>.*</p>\R?~s', '$1', $data['post_content']);
    
        return $data;
    }

    This code will only work for the new imported posts, so, if you already proccessed the feed, you can manually delete them or you can edit the feed and in the "Feed Processing" section, set the "Override duplicates" option to "Yes".

    So Auto Blog will override the previously imported items with the new content and the snippet given above will remove the "text".

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.