Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Allen

    (@amweiss98)

    Thanks..let me see if I can make this an option..good suggestion!

    Plugin Author Allen

    (@amweiss98)

    do you know how to edit the plugin files? If so, try this, go into import_posts.php and around line 800 (it doesn’t have to be specific) enter this line:

    if (!isset($featuredImage)) continue;

    that should give you what you want…let me know how it goes.

    Thread Starter mta49

    (@mta49)

    Thanks for the reply…unfortunately that line of code didn’t do it. Any other suggestion?

    Thanks

    Plugin Author Allen

    (@amweiss98)

    well, give me an RSS feed that I can try something on (where some items have images and others don’t)

    Thread Starter mta49

    (@mta49)

    Plugin Author Allen

    (@amweiss98)

    ok…try this instead

    global $featuredImage;
    if($featuredImage==null) continue 1;
    Thread Starter mta49

    (@mta49)

    It worked. all the feeds have images but the images don’t show in the posts. thank you.

    Plugin Author Allen

    (@amweiss98)

    isn’t what you wanted only to have feed items that have images show up? Now, you’re saying the images don’t show in the posts – you mean for the items that do have images? So, you’re saying the code is not working?

    Thread Starter mta49

    (@mta49)

    Allen, sorry for not being clear here…
    All the feeds have images but when I look at a single post (on my local dev site) the image is not there. The source has the image.

    Plugin Author Allen

    (@amweiss98)

    ok..I’ll see what’s going on

    Plugin Author Allen

    (@amweiss98)

    go into the posts where you say there are no images and see if there are really no image there…then I just did this, the image is there, but the link to the image is dead…I think this is a function of the feed and the way that particular feed uses images.

    Thread Starter mta49

    (@mta49)

    I checked, all of the

      single post
      generated by the feed don’t have images and I also verified the source posts and all have images, this is some bug because I know for fact this feed used to generate an image for the post as well before I implemented the above code.

    Plugin Author Allen

    (@amweiss98)

    ok…well, I can’t reproduce this problem on my servers….the code works fine on well behaved RSS feeds…try, this one for example:

    http://news.yahoo.com/rss/topstories

    I’ll see if I can find out why your feed isn’t working later today when I get a chance.

    Plugin Author Allen

    (@amweiss98)

    ok..I’ve tested this out on 2 different servers and all I see it that the images from that feed are not working (this is before using the fix I gave you)…this is that feed on my public site

    http://www.wprssimporter.com/autopost/

    If you look at the source code for many of the posts, there are links to the images, but if you put that image link into a firefox browser you will get a status 200 message – thus the link to the image is not working. It is not a bug in plugin, it is a bug in the rss feed.

    Thread Starter mta49

    (@mta49)

    While that may be true I still think it’s a bug, here is another rss link which reproduced the same thing…
    http://www.goal.com/en-us/feeds/news?fmt=rss&ICID=HP
    The feed has the image but when I go to the post “www.mysite.com/post1” there is no image.

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Feed with image only’ is closed to new replies.