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
13 views

How can I embed Wordpress post into my html site?

please help. Yes I can read and google. I have found a few sites also this https://codex.wordpress.org/Integrating_WordPress_with_Your_Website but it does not work. I do not change index.html into ...
0
votes
1answer
10 views

How to embed my latest WordPress post into an external page

We needed to create three different blogs for the type of website we wanted to make, so we are putting each individual blog on its own subdomain and are building a homepage (which will be the only ...
0
votes
1answer
22 views

How can I display instagram block with parse_block?

I have a big problem. I wrote this code: $blocks = parse_blocks( $post->post_content ); foreach ( $blocks as $block ) { if( $block['blockName'] != '' ) { $blocks_2[] .= render_block( $block ...
2
votes
2answers
160 views

Which HTTP headers to use for subdomain <iframe> embedding?

I have a Wordpress site hosted on LightSail (which uses bitnami). The domain is https://example.com On a subdomain https://sub.example.com I have another server running. On this server, I want to ...
0
votes
0answers
15 views

Unable to embed wordpress blog to other website

What I am basically trying to do is embed a blog website on the main website as iframe. I am the one who is responsible for the blog website which is running on Wordpress. The main website is being ...
0
votes
0answers
16 views

Facebook embeds fixing with functions.php

I use this code to solve the new Instagram embeds problem on my old Wordpress site: add_filter('oembed_providers', 'fr_replace_deprecated_instagram_api', 10, 1); function ...
0
votes
0answers
36 views

Getting image data from phone camera (MediaDevices.getUserMedia) into user post

Sorry for the newbie, and poorly arranged question... I'm trying to develop a super simple user based wordpress site. I want logged in users to take a photo with their phone which is then uploaded as ...
0
votes
0answers
1k views

Embed video from streamtape using direct link

Good Afternoon, i want to embed this video in my wordpress https://streamtape.com/v/7qDqGjlQe4UA9MR/Soul_Land_03_VOSTFR.mp4 Embed code <iframe src="https://streamtape.com/e/7qDqGjlQe4UA9MR/...
0
votes
0answers
9 views

Custom embed shows on posts but not on category pages

I added a custom embed handler for brightcove since one doesn't exist. It works fine on the post itself and the video loads, but just shows a linked url on category and blog roll pages. I am setting ...
0
votes
1answer
10 views

[embed]Using Wordpress 5.5.1 there is no embed option after the video is uploaded

I have looked at many posts explaining how to embed a video mp4 from my computer to Wordpress and they invariably show a box with the option to embed the video. In my Wordpress version 5.5.1 this ...
0
votes
0answers
27 views

How to Disable sameorigin from a bitnami + WordPress + NGINX stack

I need to disable SAMEORIGIN x-frame feature, https://take.ms/ZDL042 how can I achieve this? I read that if I add Header always unset X-Frame-Options to my .htaccess it would prevent the header, but i ...
0
votes
0answers
19 views

How can I create an interactive custom frame around embedded YT video?

The example of what I'm trying to understand and learn from is pictured below. The "Start Here", "Read More>>>", "See Full List of Services Included", and "...
0
votes
1answer
25 views

Embedded videos not displaying on page

I am building a wordpress site related to a rare disease that I have. On one page, I am listing a number of videos related to the disease. In total, there are 34 videos. I have the videos embedded ...
0
votes
0answers
18 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
24 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
17 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
17 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
81 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
18 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
31 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
65 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
6 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
140 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
24 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
30 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
147 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
21 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
3k 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
1answer
237 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
129 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
249 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
86 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
1answer
81 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 ...
2
votes
1answer
164 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
1k 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
30 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-...
-1
votes
1answer
198 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 ...
1
vote
1answer
146 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
72 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
1answer
64 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
88 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
1answer
508 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
56 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
69 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
48 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
187 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
270 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
3k 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
1k 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
54 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?

1
2 3 4 5 6