Questions tagged [embed]

Wordpress supports several methods to include content from other sites in your site using its own API.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How to create multiple posts with embedded images?

Here's the problem I want a quick way to create multiple blog posts with embedded images My current process goes like this Create post -> Create block -> Insert image link -> Remove header -&...
0
votes
1answer
22 views

Why does my custom html code (for a donation form) appear in a preview but not in the published post?

I have tried to add the following code using a 'Custom html' block (to embed a GiveNow donation form). It shows as a preview on the page however when I attempt to view it on the live website, it is ...
0
votes
0answers
16 views

Embed code – height of iframe is too less

I need help with a piece of HTML embed code.. My website is https://keerthiseasydish.in In the home page, i need to flash the latest youtube video of a channel. I am doing it with the following code (&...
0
votes
1answer
15 views

Add custom parameters in SoundClound embed

I use oEmbedd functionality of WordPress. All work fine but I need to set custom parameters in the iframe So I try this without success : function my_oembed_fetch_url( $provider, $url, $args ) { ...
0
votes
0answers
29 views

Is there any way to set the Featured image in wordpress post editor, using a Getty images embed code

I want to be able to use a Getty images embed code to set the featured image (Post thumbnail) in my wordpress post editor. Is there any way of doing this? I understand that Wordpress doesn't allow ...
0
votes
0answers
14 views

Why do some links show a preview and some don't?

I have put two links onto a post one on its own line with nothing else. One of them shows an embedded preview in an iframe (wp-embedded-content) and one doesn't. This is due to whether or not the ...
0
votes
0answers
11 views

Autoscroll specific pages for use on Digital signage solution xibo

I've tried to add code to make the whole WordPress page automatically scroll on load. No user action should be required as the page will load from a signage browser. We want to display the intranet on ...
-1
votes
1answer
18 views

Embed Kajabi into WP

I am trying to embed kajabi into a WP page, I am using WPBakery if this is necesarry. The Kajabi is an email capture form and I need it to in a specific part of a page. Can anyone help me with this? ...
0
votes
0answers
5 views

How do I pull out an embed out of a post's content?

I wanna pull out an embed (its output) from a post. Here's what I've tried so far: Go through the post. Find any links by any regex. Look in an array to see if that link's baseline youtube is ...
0
votes
1answer
25 views

Disable automatic embed links

Is there a way on current wordpress versions (5.2..), to turn of the automatic embed links(wp-embed.min.js), that will turn an url into an iframe? I have tried plugins, snippets, functions.php ... it ...
0
votes
0answers
11 views

Building custom embed Gutenberg blocks

I'm trying to build custom embed blocks (not oembed) and, while I'm aware of the core embed code, the documentation is nonexistent and the code itself is notably complicated. Can anyone point me at ...
0
votes
2answers
21 views

Embedding CodePen Calorie Script - jquery error

I'm trying to embed this code: https://codepen.io/jme11/pen/zMVJVX into my Wordpress about fitness, but I don't know why it's not working correctly - I've downloaded the export of the code, which ...
0
votes
1answer
37 views

Modify YouTube Embed Code to fit theme

I'm using a custom bootstrap template and other users will be embedding youtube videos, which I want to be responsive to fit the theme. What can I do to make the normal YouTube embed code, something ...
0
votes
1answer
20 views

Security when outputing wp_oembed_get code

This is a code I have in a function.php action. It is responsible for getting and displaying an embed code. Typically there is a youtube link from $embed_link but it comes from a public form so it can ...
0
votes
0answers
543 views

Embed Microsoft Forms into WordPress page

I need to embed a couple of Microsoft Forms into a WordPress site. I've tried the two obvious iframe plugins on the WordPress store (advanced and simple) and also a custom HTML block. In each of ...
0
votes
0answers
108 views

How can I get TikTok embeds in my WordPress site to work in AMP mode?

Can't find an answer anywhere online to this problem which I guess is relatively new. I have users who want to use TikTok embeds They work mostly like Twitter embeds, with a <blockquote class="...
0
votes
1answer
52 views

How to disable URL preview in Wordpress comments

I disabled URL embed in Wordpress using the following code in functions.php: function my_deregister_scripts(){ wp_dequeue_script( 'wp-embed' ); } add_action( 'wp_footer', 'my_deregister_scripts' ); ...
0
votes
1answer
60 views

Video, embed, html block usage out of the_content

I have tried hundreds ways but i couldn't do yet. I am beginner, please someone help me ! When admin use for add/upload/embed video any 3 of these blocks; video, core-embed and html i will show the ...
0
votes
1answer
94 views

Can't embed certain youtube videos into theme

I am unable to successfully embed (certain) YouTube URLs into my theme in the back end, with the intention of having viewable video clips on the front end. Not sure if this a WordPress issue or an ...
0
votes
0answers
65 views

Register an embed handler for self hosted images

Background of my Problem: I have several hundred images with urls stored in a Toolset Types custom wordpress embedded field, along with video urls. I can display my videos no problem from the embedded ...
0
votes
0answers
44 views

Block editor: Sandbox iframe shows outdated HTML

Even if users disable the popular Lazy Load for Videos plugin and the frontend correctly resets videos so that videos are no longer lazy-loaded, the Gutenberg block does not get reset. Below ...
0
votes
0answers
89 views

Customizing the oEmbed field to loop and disable up next queue for dailymotion video

Hey I am using cpt and ACF. I have an oEmbed field in which I want to loop video and disable relate video (up next queue for dailymotion )for which I have this code ---- `?php the_field('video_embedd')...
2
votes
1answer
78 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 ...
0
votes
0answers
787 views

How to modify the HTML output of Gutenberg block? (Youtube)

I'm using a headless Wordpress linked to a Nuxt projet and I like to modify the output of my Gutenblock when it's called from the REST API. Current ouput is : <!-- wp:core-embed/youtube {"url":"...
0
votes
0answers
23 views

Embedding PHP code into WordPress on certain URL patterns

I'm writing a website that combines presentational pages (about, help, etc.) with functional pages (list of entries from a database, individual pages for the entries, etc.). The functional component ...
0
votes
0answers
134 views

My Custom HTML Embed Buttton is not working on Elementor

I am trying to embed payment button which has custom html code. Which has general html code and some inline css and a script tag. I tried embedding using custom html in elementor for my landing page....
0
votes
0answers
22 views

Show Gutenberg facebook embed with a custom theme

I'm working on a custom theme, and I would like to display the facebook embed from Gutenberg in Wordpress. I've done parse_blocks and then printing the block displays just the facebook url. // page-...
0
votes
0answers
53 views

While embedding an Instagram Url I want to remove the date

The following HTML is returned by the oEmbed function. I'd like to modify it stripping the data. Can I achieve this result by acting on some filter? <blockquote class="instagram-media" data-...
0
votes
0answers
16 views

Is there a way to late trigger oembeds?

Sometimes, with the theme I am working on creating, the posts that are only oembed do not display and I have to refresh the page to see them. I assume that there is a function that triggers to make ...
-1
votes
1answer
89 views

IS there any reason not to include javascript in my own post's embeds?

I'm looking at customising the embeds of posts for a theme I am creating. Looking at header-embed.php in Theme_Compat I see that the head has the following class="no-js". Does this mean that ...
0
votes
1answer
80 views

Can I use wp_oembed_get to detect a valid embeddable link or is there a better way to do so?

I am looking for an efficient way to detect if user input is a valid embed link (and of what type). I know that one can cause WordPress to run its embed code with arbitrary input. For example, like ...
1
vote
0answers
59 views

How to register a embed handler as a fallback to a oEmbed handler?

Testing this with the Embed Gutenberg Block. In the backend it actually shows the video so this seems wrong that it behaves differently there. Registering embed handlers causes the to take priority ...
0
votes
0answers
66 views

Use get_media_embedded_in_content to get Youtube links not in their own line

I am currently using the blow code: $media = get_media_embedded_in_content( apply_filters( 'the_content', get_the_content() ) ); echo $media[0]; This is getting any YouTube link someone posts ...
0
votes
1answer
33 views

Nofollow attribute in Wordpress link embed code?

I am including links to items I've written for clients in a WP post, but want them to be "no follow" to avoid any issues with those same clients. The links are posted as embed code and I'm not sure ...
0
votes
1answer
46 views

Why most embed feature doesn't work?

Someone tried to embed this https://9gag.com/gag/axzLxBK In my friends' site here It fails. Some links can be embeded though This link seems to work fine https://www.unilad.co.uk/technology/app-...
1
vote
0answers
148 views

Stop WordPress editor embedding links

There are several posts about this, - but I suspect that it has changed after Gutenberg, since I can't get either of the methods to work. I'm trying to stop WordPress embedding links, when written ...
0
votes
0answers
31 views

Unable to autoplay and loop a cinemagraph from Imgur

I've tried a number of different codes but they don't seem to work. This is my current one, and although it loads fine, it doesn't autoplay or loop, and if I hit play, it would either not loop, or ...
0
votes
1answer
48 views

How to (correctly) embed a Facebook video?

I'm trying to embed a Facebook video in my site using the snippets generated by the Facebook Embedded videos page. Having done so, I add this function to a custom, site specific plugin so as to load ...
0
votes
1answer
46 views

How to Enable embedding Wordpress default gallery in comments?

I want to embed WordPress default gallery in comments which has embed code like this: [gallery link="file" columns="2" size="medium" ids="1,2"] To do so, I added this code which enables shortcodes ...
1
vote
1answer
137 views

How to auto embedded youtube with wp_insert_post()

I use this code to add a post to Wordpress: $new_post = array( 'post_title' => $title, 'post_content' => "test https://www.youtube.com/watch?v=4g3e8XwVIYc https://youtu.be/...
0
votes
1answer
132 views

How to make an embeded a Youtube video from custom field text responsive to screen size?

So I've embedded a youtube video using oembed like this : $embed_code = wp_oembed_get(get_field('youtube_video') ); echo $embed_code; But how do i make it respond to screen size? viewing it on a ...
4
votes
2answers
2k 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 ...
1
vote
1answer
909 views

WP Query by Gutenberg block and get its attribute

I need to fetch on the front page youtube video from the latest post where was used gutenberg youtube block. I guess I need: 1) query such posts 2) extract the youtube URL from the block Is there ...
0
votes
0answers
33 views

How to stop TinyMce from converting image url into <img>?

My TinyMCE Editor automatically turns image URLs into an embedded image. How can I deactivate this behavior and just display the URL instead?
0
votes
1answer
20 views

Facebook video on a post appears in a strange language [closed]

I don't know why it happens but, when I copy and paste a Facebook video URL inside my blog post, the language switch into Hindi or Indonesian (I don't really know) https://prnt.sc/mlu83q https://prnt....
1
vote
1answer
118 views

Detecting embeded video format

I need to get the video format from the shortcode. Example if i set my post meta "_video_format_embed" with [video src="https://url.domain/myvideo.mp4" /] . how to get the video format of my ...
0
votes
1answer
209 views

Remove wordpress embed share icon?

I am modifying my embed-content.php. I find the functions here to remove some oembed icons but not the share icon. I do not find a function to remove JUST the share icon on wordpress oembeds. Can ...
1
vote
2answers
718 views

Instagram URL is converted into oEmbed

I have 8 Instagram URLs in this post out of which 3 are not converted into embed/iframes. I'm using Gutenberg's Instagram embed blog to add the URL's.https://blog.wwf.sg/ocean/2018/11/netflix-...
2
votes
1answer
215 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 ...
0
votes
1answer
99 views

How to make enqueue_embed_scripts work with the embed_template filter

I am currently trying to customize the display of my posts that gets embedded on other sites. I am able to have my custom template file through the embed_template filter but I can't successfully ...

1
2 3 4 5 6