<media:content> missing in RSS feed - wordpress

I am setting up a Newsletter and it requires < media:content> from my RSS feed to pull images. My Wordpress Blog RSS dos not contain any at all and I am wondering how I can change my Feed? https://www.chrisontour84.de/feed
Instead I am getting some kind of encoded content:
<content:encoded><![CDATA[<p><img data-attachment-id="10784" data-permalink="https://www.chrisontour84.de/news/ice-caves-in-iceland-german-trip-report/attachment/guest_ice_cave/" data-orig-file="https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?fit=782%2C163&ssl=1" data-orig-size="782,163" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="#guest_ice_cave" data-image-description="" data-medium-file="https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?fit=300%2C63&ssl=1" data-large-file="https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?fit=645%2C134&ssl=1" class="alignleft wp-image-10784 size-full" style="border: 1px solid #000000;" src="https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?resize=645%2C134" alt="" width="645" height="134" srcset="https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?w=782&ssl=1 782w, https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?resize=300%2C63&ssl=1 300w, https://i0.wp.com/www.chrisontour84.de/wp-content/uploads/2018/01/guest_ice_cave.jpg?resize=600%2C125&ssl=1 600w" sizes="(max-width: 645px) 100vw, 645px" data-recalc-dims="1" /></p>
Things I have checked are:
disabling all Wordpress PlugIns
resetting to Standard Theme
resetting plugins folder via FTP
All of which did not bring the media:content back. Any other ideas?
Hopefully someone can help me and I can grab my Images into the Newsletter.
Thanks!
Chris
EDIT: No one at all is able to help here? :(

The media:content element is part of the MediaRSS specification, which enhances the support for multimedia elements in RSS items.
The first thing I'd try to add media:content to your blog is the Hetjens MediaRSS plugin. This requires that you can add plugins to your blog, of course.
If you identify the newsletter software or site that requires media:content I can check to see whether this solution suits your purpose.

Related

Creating new oEmbed video provider / oEmbed displays in Wordpress posts but not in the editor

We are creating a service which hosts videos. Users upload videos to our website, and we provide embed codes for playback on their websites.
We have a number of users currently using Wordpress, so we figured we would create an oEmbed service to let users easily copy/paste links into their posts.
We followed a tutorial, and and registered the following provider in wordpress via wp_oembed_add_provider in functions.php
wp_oembed_add_provider('https://vectorly.io/*', 'https://vectorly.io/wordpress/embed');
We set up an oEmbed service endpoint (https://vectorly.io/wordpress/embed?url=....), which returns the following json
{
"version":"1.0",
"type":"video",
"provider_name":"Vectorly",
"provider_url":"https://vectorly.io/",
"width":"600",
"height":"340",
"thumbnail_width":"600",
"thumbnail_height":"340",
"thumbnail_url":"https://s3-us-west-2.amazonaws.com/m.cdpn.io/screenshot-coming-soon-small.png",
"title":"NVP DemoDay - Vectorly",
"html":"<iframe src=\"https://api.vectorly.io/embed/demo/ba37b243-46c4-4f60-9a12-f6885b95c661\" width=\"600\" height=\"340\" frameborder=\"0\" allowfullscreen />"
}
Embedly seems to validate the output
Copying and pasting one of our links (https://vectorly.io/watch/ba37b243-46c4-4f60-9a12-f6885b95c661) into the Wordpress post editor does seem to successfully grab the oembed details
But the embed content editor block doesn't show a preview of the video
The actual published post looks fine though
It seems that the preview block is loading the iframe properly, but is just setting the width and height as 0 during the preview.
Looking at other non-whitelisted oembed providers, this issue doesn't seem to come up, so I think I'm doing something wrong, but I can't figure out for the life of me what it is.
Mucking around in various Wordpress files, I think that other oEmbed links (even from non-whitelisted 3rd parties) are doing something to trigger sizing of the preview Iframe in Javascript.
Any insight on this would be appreciated. Otherwise, we'll just forego oEmbed and stick with vanilla html embed codes
In case anyone else stumbles on this issue in the future:
You need to provide iframe close tags when you send oembed responses to wordpress
I.E. The following does not work
<iframe src="..." />
The following does work
<iframe src="..." ></iframe>
Adding a figure tag improves the result. See the fixed oEmbed output from our server
{
"version":"1.0",
"type":"video",
"provider_name":"Vectorly",
"provider_url":"https://vectorly.io/",
"width":"600",
"height":"338",
"thumbnail_width":"600",
"thumbnail_height":"338",
"thumbnail_url":"https://s3-us-west-2.amazonaws.com/vv-raw-videos/ba37b243-46c4-4f60-9a12-f6885b95c661.png",
"title":"NVP DemoDay - Vectorly",
"html":"<figure><iframe src=\"https://api.vectorly.io/embed/demo/ba37b243-46c4-4f60-9a12-f6885b95c661\" width=\"600\" height=\"338\" frameborder=\"0\" allowfullscreen ></iframe></figure>"
}

How would I remove this from all wordpress posts

In every wordpress post I have code like this -
<img src="http://domain/wp-content/uploads/2016/08/Black-Bosch-Avantixx-HBM13B261B-Electric-Double-Oven-300x266.jpg" alt="black-bosch-avantixx-hbm13b261b-electric-double-oven" width="300" height="266" class="alignright size-medium wp-image-367913" />
Obviously each post is a different name, how can I remove this paragraph inside all posts as I have thousands.
Is there a command I can do using phpmyadmin?
Step by step would be great thanks.
You have try to delete the img? Do you have use some plug-in downloaded from external website? I don't think you need db i think it's something in JS or php if this you can use add to your js file:
$(document).ready(function() {
$(".wp-image-367913").css("display","none")
});
If it's only the code, you need to check your article.php or single.php or your post php page file and see if there are this link write some where.

Youtube video not opening in lightbox

Hi i am using prettyphoto media plugin in wordpress to display my youtube videos in a lightbox.
I have three, and I posted each one as different youtube video. Using prettyphoto the 1st post displays the video in lightbox. But other two don't open in the lightbox and just redirect to the youtube page.
Below one works perfectly
<a class="slid-img" href="http://www.youtube.com/watch?feature=player_embedded" rel="prettyPhoto"><img src="http://code/wp-content/uploads/2013/02/video1.png" alt="video1" width="412" height="323" class="alignnone size-full wp-image-731" /></a>
Below two doesn't work with lightbox
<a class="slid-img" href="http://www.youtube.com/watch?v=k4QO" rel="prettyPhoto"><img src="http://code/wp-content/uploads/2013/02/video2.png" alt="video3" width="411" height="324" class="alignnone size-full wp-image-732" /></a>
<a class="slid-img" href="http://www.youtube.com/watch?feature=player_embedded" rel="prettyPhoto" ><img src="http://code/wp-content/uploads/2013/02/video1.png" alt="video2" width="412" height="323" class="alignnone size-full wp-image-731" /></a>
Can any one tell me how to make it work?
All the videos are set in slider.
Other Problem is 1st video opens in fancybox only in the first round of the slider after that video doesn't open in fancybox
Here are some basic troubleshooting steps for your situation:
Have you tried non-youtube content in your PrettyPhoto? Try some -- like images that are loaded from Wordpress. If images don't work either, you likely have an error somewhere in your javascript that is tripped when you first call PrettyPhoto. Look carefully through the javascript that is generated by the plugin -- most likely the javascript in the head of your wordpress page.
Otherwise, a likely conflict with PrettyPhoto is JetPack. If you have this plugin installed and enabled, try disabling it first.
If you don't notice anything better, try disabling all wordpress plugins except for PrettyPhoto. If it still doesn't work properly, try reverting to the default wordpress theme, like 2010.
If none of these is the problem, it could be the version of jQuery you are running. I think PrettyPhoto is compatible up to only jQuery 1.6.1.
Another thing to check is to make sure you are only loading one copy of jQuery. Look through the generated source code of your wordpress page, and see if there is more than one reference to jquery.

Make Google+ button ignore and div of images on a blog page

I have an blog with related posts image in the top of it. I was waiting for something to fix it since they launch it, but didn't find anything yet so I'm asking for help with it.
The question is. When someone share an post with +1 button, it get the first image of the URL, which usually is one of the featured posts thumbnail.
In Facebook Share I got an plugin that get the 'featured image', but as far I researched, didn't find anyway to make it possible with G+.
So, one of the solutions I considered is making the "Featured post thumbnails" div 'hidden' to G+ button. Is it possible? Or make something similar?
You need to specify the +Snippet values. In the case where a post has no image make sure you keep the image definition but use the blog logo instead.
<body itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">Shiny Trinket</h1>
<img itemprop="image" src="image-url"></img>
<p itemprop="description">Shiny trinkets are shiny.</p>
</body>
In addition to Abraham's way, you can specify the og: meta data tags in the <head> section of your blog posts. See http://ogp.me for more information about the og: meta tags. The one you need is <og:image />.
IIRC, Wordpress has plugins that allow you to specify og tags.

how to add a lightbox to images in Ubercart cart?

Can I apply "Custom formatters" presets to Ubercart cart ?
I need to customize the html code of the images in the cart.
I'm trying to do it with hook_form_alter but what I get is the output html and it is too late to modify it:
[#value] = > < a
href="/website/node/87">< img
src="http://localhost/website/path/to/picture
1.png" alt="" title="" class="imagecache imagecache-cart"
width="100" height="221" />
I need to add "rel=lightbox" attribute to and change href path.
thanks
I think you want to look at hook_uc_image_widget. I can't find the API documentation for it, but you can see an example implementation in the jQZoom module.

Resources