Feed with image only
-
Hi, This is a fantastic plugin.
I am using feed to post, how do you exclude feeds that don’t images? I only want to grab or show feeds with images.
Thanks.
-
Thanks..let me see if I can make this an option..good suggestion!
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.
Thanks for the reply…unfortunately that line of code didn’t do it. Any other suggestion?
Thanks
well, give me an RSS feed that I can try something on (where some items have images and others don’t)
ok…try this instead
global $featuredImage; if($featuredImage==null) continue 1;It worked. all the feeds have images but the images don’t show in the posts. thank you.
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?
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.ok..I’ll see what’s going on
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.
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.
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.
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.
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.
The topic ‘Feed with image only’ is closed to new replies.