mlemberg
Forum Replies Created
-
Forum: Plugins
In reply to: [Instant Articles for WP] HTML Embeds Require Valid WidthI get this error too.
Forum: Plugins
In reply to: [Instant Articles for WP] Correct Custom Rule For YouTube iframe Embed?Hello again.
I have now turned off all plugins except for Akismet and JetPack (which are WordPress standards) to test.
Adding the following text to the WYSIWYG:
Facebook-opslag: Efter Facebook-opslag. Youtube-opslag: Efter Youtube-opslag. Twitter-opslag:
Efter Twitter-opslag.Folkets vilje underkendt: Prestigeskib f?r alligevel ikke ?tumpet? navn https://t.co/iUHcqDZItz pic.twitter.com/qaFCHfBe5b
— Berlingske (@berlingske) May 6, 2016WP produces:
<p>Facebook-opslag:</p> <p><fb:post href="https://www.facebook.com/Kongressen/posts/864778163631091"></fb:post></p> <p>Efter Facebook-opslag.</p> <p>Youtube-opslag:</p> <p><span class="embed-youtube" style="text-align:center; display: block;"><iframe class='youtube-player' type='text/html' width='715' height='433' src='https://www.youtube.com/embed/EDpp3tPzATY?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'></iframe></span></p> <p>Efter Youtube-opslag.</p> <p>Twitter-opslag:</p> <div class="fitvids-video"> <div class="embed"> <blockquote class="twitter-tweet" data-width="550"> <p lang="da" dir="ltr">Folkets vilje underkendt: Prestigeskib f?r alligevel ikke ?tumpet? navn <a href="https://t.co/iUHcqDZItz">https://t.co/iUHcqDZItz</a> <a href="https://t.co/qaFCHfBe5b">pic.twitter.com/qaFCHfBe5b</a></p> <p>— Berlingske (@berlingske) <a href="https://twitter.com/berlingske/status/728568397202481156">May 6, 2016</a></p></blockquote> <p><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></div> </div> <p>Efter Twitter-opslag.</p>
Instant Articles gets:
<p>Facebook-opslag:</p><p>Efter Facebook-opslag.</p><p>Youtube-opslag:</p><p>Efter Youtube-opslag.</p><p>Twitter-opslag:</p><p>Efter Twitter-opslag.</p>
Forum: Plugins
In reply to: [Instant Articles for WP] Correct Custom Rule For YouTube iframe Embed?I am on 4.5.1–da_DK with theme ColorNews V 1.0.6 by ThemeGrill.
Pasting this:
https://www.youtube.com/watch?v=EDpp3tPzATY
WP produces:
<p><span class="embed-youtube" style="text-align:center; display: block;"><iframe class='youtube-player' type='text/html' width='715' height='433' src='https://www.youtube.com/embed/EDpp3tPzATY?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'></iframe></span></p>
Forum: Plugins
In reply to: [Instant Articles for WP] Correct Custom Rule For YouTube iframe Embed?Hello Paulo.
The <p></p> wrapping is something WordPress automatically does when converting regular youtube url’s to embeds. So it would certainly be preferable to have a rule that converts this correctly to a social embed. Can you advice how to construct a custom rule to fit this purpose?
Regards!