{"id":66072,"date":"2017-04-06T18:28:09","date_gmt":"2017-04-06T18:28:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/replace-thumbnail-with-oembed\/"},"modified":"2019-03-03T13:07:34","modified_gmt":"2019-03-03T13:07:34","slug":"replace-thumbnail-with-oembed","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/replace-thumbnail-with-oembed\/","author":14867054,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.5","stable_tag":"1.2.5","tested":"5.1.22","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Replace Thumbnail with oEmbed","header_author":"Palasthotel <rezeption@palasthotel.de> (Kim-Christian Meyer)","header_description":"This plugin checks, if the first line of the content is a valid oEmbed URL. If that is the case, it replaces the thumbnail image with the oEmbed element (e. g. with a YouTube video). Now you don\u2019t have to care too much about a thumbnail image, since instead you would see the video or any other oEmbed content. You can even e. g. watch videos on your blogs front page without opening the post. Works for all is_singular() WordPress contents, where a thumbnail image is set.","assets_banners_color":"","last_updated":"2019-03-03 13:07:34","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/palasthotel.de\/","header_plugin_uri":"","header_author_uri":"https:\/\/palasthotel.de","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1284,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.1.1","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1860,311,2874,1609,1610],"plugin_category":[56],"plugin_contributors":[138993,138992],"plugin_business_model":[],"class_list":["post-66072","plugin","type-plugin","status-publish","hentry","plugin_tags-iframe","plugin_tags-instagram","plugin_tags-oembed","plugin_tags-vimeo","plugin_tags-youtube","plugin_category-social-and-sharing","plugin_contributors-greatestview","plugin_contributors-palasthotel","plugin_committers-greatestview","plugin_committers-palasthotel"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/replace-thumbnail-with-oembed.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>ATTENTION for WP Version 5+: This plugin does not work with Gutenberg (no problems with Classic Editor plugin though)! Gutenberg brings its own HTML structure for oEmbed elements, which is quite difficult to target.<\/p>\n\n<p>This plugin checks, if the first line of the content is a valid oEmbed URL. If that is the case, it replaces the thumbnail image with the oEmbed element (e. g. with a YouTube video). Now you don\u2019t have to care too much about a thumbnail image, since instead you would see the video or any other oEmbed content. You can even e. g. watch videos on your blogs front page without opening the post.<\/p>\n\n<p>Works for all WordPress contents, which have a thumbnail set and are not password protected.<\/p>\n\n<p>The active WordPress Theme must use the_post_thumbnail() or get_the_post_thumbnail() functions for this to work!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>replace-thumbnail-with-oembed.zip<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>You\u2019re done! Try pasting a YouTube, Instagram or any other oEmbed URL into the first line of a post or page. Open the post and see, that the thumbnail image has been replaced by the oEmbed element.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>SVN fix<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>SVN fix<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>readme.txt fix<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>WordPress 5.1 compatibility check and readme.txt update.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Removed copyright section<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Now working for teaser as well<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Disabled, when passwort protection is active<\/li>\n<li>Disabled, when no thumbnail image is set<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Test release, no changes in plugin code<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release<\/li>\n<\/ul>","raw_excerpt":"Replaces the thumbnail image with the oEmbed element from the first line of the content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/66072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=66072"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/palasthotel"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=66072"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=66072"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=66072"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=66072"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=66072"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=66072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}