• Hi,

    I’ve a problem with my rss feed – This is what I get when I try it:
    “Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘insertThumbnailRSS’ was given in /storage/content/91/149691/konservativt.se/public_html/wp-includes/plugin.php on line 199”

    URL: http://www.konservativt.se/

    Could someone help me with this?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The plugin you are using, Insert RSS Thumbnails, comes with this warning

    This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

    Thread Starter Richard

    (@richardahlin)

    Hi Kmessigner,

    Thanks for your reply.

    It’s not a problem with the plugin. I tried with the the default RSS reader as well and the problem was the same.

    Regards,
    Richard

    Richard,

    My solution for this same problem was found here:
    http://ww.wp.xz.cn/support/topic/plugin-wp-rss-aggregator-adding-a-thumbnail?replies=23

    Specifically, you may need to append this code below to your functions.php in your /wp-content/themes folder. THIS IS UNDER THE ASSUMPTION YOU ARE USING A CHILD THEME. If you are not, I highly recommend you create on as your themes get overwritten when you upgrade WordPress and this ends up breaking all the additional code you put in.

    function insertThumbnailRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '' . get_the_post_thumbnail( $post->ID, 'big-thumb' ) . '' . $content;
    }
    return $content;
    }
    
    add_filter('the_excerpt_rss', 'insertThumbnailRSS');
    add_filter('the_content_feed', 'insertThumbnailRSS');

    Please be careful where which functions.php you append as well as there are several residing in wordpress and a duplication of this code will give you a different error.

    Although, I’ve checked your feed and not see any issues with it at http://www.konservativt.se/feed/ so you may have already fixed the issue.

    Good luck and let us know if this solved your problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘RSS Feed problem’ is closed to new replies.