Questions tagged [embed]
Wordpress supports several methods to include content from other sites in your site using its own API.
293
questions
67
votes
5
answers
71k
views
What does wp-embed.min.js do in WordPress 4.4?
Question
What does the wp-embed.min.js file do? I noticed it is added to the end of my blog page footer.
How can I get rid of it?
Effort
After some googling and I found Embeds on the Codex. Why ...
16
votes
1
answer
12k
views
Setting a post's featured image from an embedded YouTube video
If I create a post that has an embedded YouTube video in it (so all I do is paste the YouTube URL into the post and let Wordpress automatically embed it for me), is there a way to have the thumbnail ...
10
votes
2
answers
8k
views
Use [embed] filter in template files
WordPress automatically embeds a youtube video's if I use:
[embed] http://www.youtube.com/watch?v=Xog1T5dUxcw [/embed ]
This is great, but it doesn't work if I use it in a template file. I have a ...
10
votes
3
answers
10k
views
Do_Shortcode not working for Embed
I'm trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this:
<?php echo do_shortcode('[embed]...
8
votes
4
answers
20k
views
How do I embed youtube videos with https instead of http in the URL?
I'm running a site that only communicates over SSL/https so if I embed a youtube video using http I will get an error message saying the site is'nt fully secure. Is it possible to rewrite something so ...
8
votes
8
answers
15k
views
WP Oembed not passing through the "autoplay=1" variable
I'm having a problem here:
I am passing this through a custom field: http://www.youtube.com/watch?v=E6P1Q-UycHA&autoplay=1
(notice the autoplay=1)
But when I load the video on my theme using ...
7
votes
2
answers
7k
views
How can I change Max Embed Size in WordPress 3.5?
after updating to WordPress 3.5 my automatic embeds are limited to a width of 500px, and the settings for this size have been removed with WordPress 3.5
Also, I can't find the Values in the ...
6
votes
3
answers
12k
views
Get first video from the post (both embed and video shortcodes)
The goal is to grab the first video (embed or shortcode) from the post.
So we need to check post content if it has embedded videos ( supported by WP ) or [video] shortcodes. Multiple videos and embeds ...
6
votes
3
answers
1k
views
Replace audio/video enclosure with player?
Current state: I'm parsing XML feeds into the front end and/or the back end (Admin UI), but not into the DB.
Inside those feeds i place mp3- and video content, currently only as plain text (no link, ...
5
votes
7
answers
29k
views
Soundcloud embed shortcode does not work
The soundcloud short code does not seem to be working. I've tried over several days and it just shows up as raw code. Is this a glitch, has support officially been discontinued, is there some ...
5
votes
2
answers
5k
views
Wordpress Gutenberg Embed Blocks Are Not Responsive
I'm building a custom theme for a client's website and want to allow them to use embedded content in their posts (Youtube videos, Facebook posts, Twitter feeds, etc.) Typically, I've taken to severely ...
5
votes
2
answers
3k
views
TED talks shortcode not working
I am trying to embed a Ted talk video using the shortcode:
[ted id=myid]
But it's not working. It shows the text instead of the video.
Is there any configuration I need to check to make it work?
5
votes
1
answer
8k
views
Embed iframe or html page into dashboard widget
I was wondering if it would be possible to embed an html page or add an iframe into a dashboard widget.
I have a multi author blog and i want to make my admin section a simple as possible for some of ...
4
votes
4
answers
7k
views
Applying automatic link class to images embedded to posts
I'd really love to be able to conditionally apply a CSS class to link elements of images embedded into posts, but I can't seem to figure this one out.
Basically what I'd like to achieve is to replace ...
4
votes
3
answers
1k
views
Modify youtube video size on one page and show another size on different page
I have to display three videos (custom post type) on my first page. When clicking on the link, the post is displayed and video should be in default width.
Can you help to find out how to change width ...
4
votes
1
answer
7k
views
add_filter to youtube embeds?
hey guys,
when posting a youtube video link in the backend (in a post or a page) wordpress is automatically creating the embed code for me.
Is it possible to add a filter to that?
I'd love to change ...
4
votes
2
answers
9k
views
Give Author users the right to embed
I'm trying to allow "author" users to embed in posts. I (the administrator) can iframe, embed, etc...., but authors can not.
Can someone show me to give authors 'just' the ability to embed and ...
4
votes
1
answer
3k
views
Detecting Embed URLs Within post_content
I need to change the way WP outputs html when given an embed URL within the content. Example content within the WP editor:
This is standard content and will be wrapped in a 'p' tag. But check out ...
4
votes
3
answers
2k
views
How to embed page content in a blog post
I've built an HTML table that is posted on a page in my site, and I'd like to use that same content inside a blog post (something of an announcement of the table's publication). The table is likely to ...
4
votes
2
answers
2k
views
wp_embed_register_handler not working
I tried the example in this link https://codex.wordpress.org/Function_Reference/wp_embed_register_handler but it didn't work. This is my whole code:
add_action('init', function() {
...
4
votes
1
answer
568
views
Video Embed in Sidebar Widget with Links to Others in Category
I am trying to re-create the sidebar widget found here: http://www.clinicalforensicpsychology.org/
The links below the shown video are linked to the post category "videos". I have tried most every ...
3
votes
2
answers
18k
views
Embed .mov file via 'Add Media' not working
I know since WP 3.6 we've been able to upload and embed various file formats and that the 'Add Media' button effectively implements the correct media embed shortcode for us.
I'm having a problem in ...
3
votes
4
answers
2k
views
Moving a PHP web-app to Wordpress
I've been running a niche job-search web-site for the past several years. I wrote it from scratch in PHP. Essentially it allows members to search for or post job ads. As you can imagine it has ...
3
votes
2
answers
3k
views
Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
When you hover over my drop-down menu using IE8 or IE9, the menu div will display behind the YouTube embedment. It works fine on all other browsers.
Upon research, I found out that many others have ...
3
votes
3
answers
2k
views
WordPress embeds in AJAX inserted content
I have a page that is calling in the content from other posts (a custom post type, specifically) and inserting it into the page. It all works great, but I'm losing the functionality of WordPress ...
3
votes
1
answer
2k
views
Video embeds work in backend, but are not parsed in frontend
When I try to embed a YouTube video using one of the following ways:
By entering a YouTube URL
By entering an [embed] shortcode
By adding a video through the media browser (which results in an [embed]...
3
votes
2
answers
35k
views
How to change thumbnail of embedded Youtube video?
When I embed a Youtube video onto my page, is there a way to change the thumbnail displayed (screenshot)? I do not have admin access to the Youtube video in-question.
I would prefer a non-plugin ...
3
votes
1
answer
2k
views
How to add new embed handler not supported by oembed
I am looking to embed videos from websites that do not offer oembed support, but the reference offered on wp codex about wp_embed_register_handler() is just too broad for someone like me.
I tried ...
3
votes
1
answer
14k
views
How to Embed HTML files directly into Wordpress
I looking to find a Wordpress Addon that would allow me to embed HTML files directly in the my WordPress interface.
After having done some research the only method I seem to find is by adding the ...
3
votes
1
answer
929
views
Manipulating oembed_dataparse stopped working for YouTube embeds
My go-to code to manipulate YouTube embeds does not work anymore. Can anyone explain to me what I am doing wrong?
This is my code in functions.php
// OEMBED FILTER
function bolster_oembed_filter( $...
3
votes
1
answer
137
views
Youtube - Embed as IFRAME
When I embed a YouTube video in the suggest manner (paste url) it adds this as an object. Is there a way to embed as IFRAME instead?
3
votes
1
answer
3k
views
How to overwrite youtube embed?
I really like how you can just paste a URL right into the post... such as:
http://youtube.com/watch?v=xyz or http://vimeo.com/123456
What I want to do is change the default code for this to support ...
3
votes
2
answers
579
views
OEmbed from Pinterest
I'm looking for a way to show a certain pinterest pinboard in a post.
I've found in the WordPress.com Documentation that you can simply post your pinboards URL there. This is not possible on a ...
3
votes
2
answers
2k
views
Add a YouTube or Vimeo video as a post attachment?
I'm developing a gallery plugin and I was wondering if I could add a YouTube and Vimeo "embed" option to the media uploader to be able to add YouTube and Vimeo videos as attachments to a post instead ...
3
votes
1
answer
2k
views
Any way to use a custom Parameter for vimeo embed without using an iframe?
I am trying to get some oembed parameters attached to my Vimeo clips. I tried to get it going using the following two instructions:
Passing Parameters to a Vimeo link in a WordPress Custom Field - ...
3
votes
2
answers
543
views
How to remove the embed_footer?
I'm trying to remove the entire embed_footer from WordPress embedded posts.
By adding the following code in the functions.php, I was able to remove the site title and comments icon. But still, the ...
2
votes
3
answers
5k
views
Convert all youtube link to embed
I have this function to convert any YouTube URL in any post or page to embed :-
function embed_youtube_an($post_content) {
global $posts;
//preg_match('|http://www.youtube.com/watch?v=([a-zA-Z0-...
2
votes
2
answers
3k
views
Get all Youtube video's from posts and embed them on a different page
Is this possible? I want to let it check all my posts to see if there is a embedded Youtube video. If so, I want to show that on a different page, embedded and linking to that particular post...
I ...
2
votes
1
answer
3k
views
How to change WordPress embedded player size or show just the play button
Even though I tried to alter the width of the embedded player size [embed] which looks this
using [embed width="50" height="50"], but no matter what value I use it will not change the size. ...
2
votes
2
answers
2k
views
How do I embed in a text widget?
I'm trying to embed a YouTube video in a Text Widget and Wordpress 4.0 is stripping out the embed when rendering. For example, if I put this in the body of the widget:
Before
[embed]http://youtu.be/...
2
votes
2
answers
6k
views
Embed Wordpress Admin in an iframe
I am trying to embed the admin "new post" WordPress page into an iframe:
<iframe height="500px" frameborder="0" width="740px" src="my_wordpress_domain/wp-admin/post-new.php"/>
For some reason ...
2
votes
1
answer
608
views
How to embed a WordPress article on another website [closed]
I'm looking for a way to share (automated way) my WordPress entry on another of my self programmed website. In other words: I'd like to embed a specific WordPress article into my website (coded in ...
2
votes
1
answer
437
views
Hiding Comments Icon On oembed
I need to hide the comments icon on oEmbed widgets or disable the comments icon feature completely. I've been looking at the following links:
https://developer.wordpress.org/reference/files/wp-...
2
votes
2
answers
8k
views
Youtube parameters within WordPress embed code?
Ok, so I want to embed youtube videos but also remove the annoying annotations. The following code works great from to embed the video
[embed width="599" height="360"]youtube.com/watch?v=mNf0v2WkV0U [...
2
votes
1
answer
149
views
How to anchor to embed video
How would I create an anchor link from the Test text to the embed conten? I tried adding an id="03T" inside of the div within the embed comment block. However, when doing that I am unable to ...
2
votes
1
answer
4k
views
use of <svg> tag into wordpress
Hi i'm trying to upload a svg map to my wordpress website.
I fixed all to be able to upload svg trough the media gallery but then when i try to write the tag into the page it won't recognize it. I ...
2
votes
2
answers
616
views
Should I use custom post types for a front page video feature (vimeo)?
I'd like to create a front page video feature that embeds a vimeo video of the users choosing. I'd like the user to only have to input the video code. For instance, for http://vimeo.com/24474320 - I'...
2
votes
2
answers
745
views
Convert Wordpress.com embed links to normal embeds
I've given the task of moving several well established blogs from wordpress.com into an independent hosting using Wordpress. Wordpress.com uses a special parser for taking stuff like this:
[youtube=...
2
votes
1
answer
15
views
Override base Gutenberg block default spacing in child theme's theme.json
I am trying to change the default top spacing (margin) for the Embed block used in Gutenberg. I noticed that for some reason, the default setting is
.wp-block-embed {
margin: 0 0 1em;
}
which ...
2
votes
1
answer
407
views
wp_embed_register_handler to embed html files
I am creating a new Wordpress website that will contain thousands of online books and articles to read, in addition to other media, like videos.
I don't want to bloat my database by pasting tens of ...