Questions tagged [embed]
Wordpress supports several methods to include content from other sites in your site using its own API.
293 questions
0
votes
0
answers
25
views
Add checkbox field to core/embed
I want to add checkbox to core/embed,
I ahave tried many solutions , non work
for example , one of my essays
Update : addng any field would be appreciated
wp.hooks.addFilter(
'blocks....
0
votes
1
answer
10
views
Embeds (YouTube, Spotify) Work Live but Won't Load in Block Editor [closed]
My site went through a few hosting updates recently and everything seems to be working fine now, except for one annoying thing: When I edit a post with YouTube or Spotify embedded blocks in it, they ...
0
votes
0
answers
22
views
Would it be possible to disable embeds for specific user roles? If so, how?
I would like to disable embeds for specific custom user roles. I found this solution to disable embeds from WPPagebuilders:
function my_deregister_scripts(){
wp_dequeue_script( 'wp-embed' );
}
...
0
votes
0
answers
40
views
Not allowing my site to be embedded elsewhere via oEmbed
Kind of "bizarre" question here.
Is there a way to disable the possibility of embedding (via oEmbed) my site elsewhere and instead having only the URL shown?
If you copy a URL into the block ...
0
votes
0
answers
14
views
Embedding a custom live chat (gen. from Salesforce) into my WordPress header
I'm having trouble embedding a custom live chat (gen. from Salesforce) into my WordPress header. Don't have PRO access. Any suggestions please?
2
votes
1
answer
366
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 ...
1
vote
0
answers
21
views
Prevent using oEmbed for a specific domain
We have a custom block that lets people embed content from https://somedomain.com.
The problem is that somedomain.com supports oEmbed poorly, and we’d rather use our own block.
Currently, if someone ...
0
votes
0
answers
61
views
add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed
I'm working with a WordPress website owner who wants to only display their own videos in the "Related Videos" at the end of each embedded video. I've used Chrome Inspector to demonstrate ...
0
votes
1
answer
121
views
Including plain text URL to post on same site is converting the URL to an embed
If I paste a plain text link (non-hyperlinked) to a post on the same site (using Classic Editor) it converts the post's URL to an iFrame embed.
For example if my site is https://mysite.local and the ...
0
votes
0
answers
202
views
Embedding WhatsApp group discussion into website
WhatsApp groups are popular today. I thought to embed WhatsApp group into a website. Searched on WordPress.org repository but could not find anything. There are many plugins related to WhatsApp chat ...
0
votes
0
answers
70
views
wp_editor mce-view
We are using the wp_editor on a page on the front-end to allow subscribers to create a cpt post.
We added support for auto-turning youtube urls into embed tags:
function mce_scripts() {
...
0
votes
1
answer
155
views
How to add embed image in comments?
I'm looking for a way to display the images when the commenter adds a simple link to this image (without plugin, without upload, nor activate TinyMCE). For now, when the commenter adds a link to an ...
2
votes
1
answer
273
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 ...
1
vote
0
answers
412
views
What purpose does /embed/ URL have and how to avoid SEO problems?
I've noticed this with many WordPress projects (and clients) over the years so I thought it was worth a public thread. When you interlink a post/page that has embedding enabled, the iframe source will ...
-1
votes
1
answer
794
views
Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?
WordPress STILL loads Fonts differend from the one i defined via font-face and *{font-family}. Especially in WP-Embeds still the Font Reference
-apple-system,BlinkMacSystemFont,"Segoe UI",...
1
vote
0
answers
186
views
How can I create iframe/embeddable content from my WordPress site?
I have a Google map on my site that I use to plot out various points of interest as it relates back to my blog. I have had a few people suggest to me to create an embeddable version of the map so they ...
0
votes
1
answer
192
views
Wordpress get_media_embedded
test text
<div class="video">
<?php
$media = get_media_embedded_in_content( apply_filters( 'the_content', get_the_content() ));
print_r($media);
...
0
votes
1
answer
219
views
Trigger wp-embed via JavaScript to refresh iframe preview?
I'm running WordPress 6.0 and using the Block Editor to enable content editors to paste links that generate the embed/iframe preview, as described here.
I've noticed from time to time (i.e. ...
1
vote
1
answer
1k
views
how do I turn off whatever causes links to be embedded as URL's site title
When I print a url onto my site, it automatically gets wrapped in:
<blockquote class="wp-embedded-content" data-secret="tDj3qpdVAi"><a href="https://www.example.com/&...
0
votes
1
answer
204
views
Creating posts with links from a txt file
I have a script which scrapes articles from the web and saves the url to a .txt file. I've created a custom plugin which on activation, loops through the urls and creates a draft post with the content ...
0
votes
0
answers
74
views
Is it possible to embed a wordpress tag page on wordpress?
I'm trying to use the "Embed URL" block to include another WP site's tag page on my WP page. It seems like I'm able to embed individual posts from that site (so the theme supports embedding)...
0
votes
0
answers
246
views
Code playground (like CodePen) inside WordPress?
I've reached exhaustion in trying to find a solution to my problem. And the problem is that I want to display custom HTML/CSS snippets inside of my WordPress blog posts (e.g. be able to render them ...
0
votes
0
answers
35
views
Wordpress functions.php conditional include another functions file
In my wordpress functions.php I have calls to include other function files. For example like so:
include("functions/articles.php");
include("functions/custompost.php");
Within ...
0
votes
1
answer
43
views
Embedding local video in Wordpress comments
I'm trying to embed a video file (from Media Library) in a comment.
Adding the default code currently used in Posts didn't work:
[video width="1280" height="718" mp4="https://...
0
votes
0
answers
158
views
Need help in fixing javascript in Wordpress
I am having a weird and frustrating problem regarding adding javascript to the posts in WordPress. Googled but no luck.
I am adding widget from the N2yo Satellite Tracking website to my website. In ...
0
votes
1
answer
155
views
Embed wikipedia page in WordPress?
I’d like to be able to embed a wikipedia page in my website.
I know this is possible as I’ve seen it elsewhere, but despite searching here and google I can’t figure it out.
There is/was once a plugin ...
0
votes
1
answer
1k
views
Wordpress block editor embeds not working in theme (single.php)
I am trying to embed 'spotify' and 'youtube' services in the block editor. When added from the admin, they are displayed fine in the block editor, but when the post content is printed from the theme (...
0
votes
1
answer
192
views
Javascript embedded disappears for editors
WP multisite installation ver 5.2.11Plugin Advanced Access Manager 6.5.4 licensed This plugin creates and manages different level of users with different privileges.
Already asked to the seller's ...
0
votes
0
answers
360
views
Include User ID in iFrame URL
I seem to have hit a roadblock trying to figure out how to append the user ID to an embedded iFrame url address. I am using a third party app that tracks unique users (and invoices me accordingly). ...
0
votes
0
answers
162
views
Embed post wont work on custom post type
I trying to get embed posts to work on custom post types. When I pastle an internal link in the editor, it returns a fail load message, as it fails to get the url.
Here is the code for my post type:
&...
0
votes
0
answers
491
views
JSON api oembed youtube
I want to write a plugin that uses the Wordpress5 methods of embedding media. I want a block where users can insert URLs. Then use WordPress methods to find the provider and get the embeddable iframe.
...
0
votes
0
answers
53
views
Embedding Post Editor Into External Site
I want users of my spring boot site to be able to write/edit posts from the spring site itself using the Wordpress editor. I have found that there are ways to use the Wordpress API to post the content ...
0
votes
0
answers
581
views
How can I block embeds and show an individual preview image per block?
I am trying to program an embed blocker for the default Gutenberg embeds with a prior consent banner and preview image (for matters of privacy). In detail:
block YouTube videos that are embedded via ...
0
votes
1
answer
351
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
1
answer
96
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
2
answers
7k
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
0
answers
39
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
0
answers
405
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
0
answers
82k
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
1
answer
25
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
1
answer
884
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
1
answer
142
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
1
answer
60
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
0
answers
200
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 ...
-1
votes
1
answer
356
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
1
answer
606
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
2
answers
107
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
1
answer
805
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
1
answer
74
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
0
answers
7k
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 ...