-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wordpress.com adds tracking pixel (gif) that teaserImage pulls instead of post image #115
Comments
Can you paste feed url?
|
Tried with https://asijnews.com/feed/ and https://asijnews.com/feed/?mrss=off |
For whatever reason wordpress is not embedding the images into the post description itself. Instead it puts it outside of the description as |
Here we go :) sdepold/feedrapp#48 |
Tada:
|
Please let me know if this works for you :) |
@sdepold When I try this, it renders the following:
What am I doing wrong? I am not using WP, BTW. I just want to be able to bring in the media image. |
can you run this code? It prints the content of the entry. please paste one of the entries here. It works for me nicely. You are not running your own version of feedrapp I assume?
|
@sdepold You are correct, we are not running our own feedrapp. We may do that in the future, not sure. Okay, it brought in the image using that feed. I will paste one of the JSON responses below. Question: Is it only looking for media:thumbnail? Or does it account for other xml tags? Such as:
Question 2: What is the best way to limit the text that is displayed from bodyPlain? Thanks so much for the response! Here is the JSON:
|
@sdepold nevermind on the truncated body. |
Hi,
Thanks for a great tool!
As stated, wordpress.com add a crazy tracking pixel as an image for every post. There is no way to disable this "feature" on wordpress.com and all themes seem to enable this "feature".
Is there any simple way of forcing teaserImage and teaserImageUrl to call the second or third image? Hoping this would get around this stupid tracking pixel issue.
I have tried messing with different number combinations of this line but haven't found one that works.
teaserImageUrl: (function (entry) { try { return entry.content.match(/(<img.*?>)/gi)[0].match(/src="(.*?)"/)[1]; }
Thanks for your help!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: