Questions tagged [embed]
Wordpress supports several methods to include content from other sites in your site using its own API.
283
questions
0
votes
0
answers
15
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
0
answers
28
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
17
views
Disable "auto embed" feature when pasting text and links
I want to disable the auto embed feature of Wordpress, when pasting arbitrary text that includes links in Gutenberg.
I tried this with something like:
add_filter('allowed_block_types', '...
0
votes
0
answers
19
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
10
views
Add class and change src type inside wp_oembed_get
So I don't know how to properly do this and I've already spent like 3+ hours attempting to figure this out, so I'm getting help from the community.
What I'm trying to achieve:
Add class='optanon-...
0
votes
0
answers
26
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
8
views
How to use a shortcode or an application to dynamically embed content from one WordPress site to another?
Looking to update the content only in one place and have updated to the other site(s). Thinking it can be done with shortcodes but not sure how to create it. I am using Elementor on both sites. Thank ...
0
votes
0
answers
17
views
Scanning for custom embed and prefetching
I have an embed which is essentially a script and a div (so not an oembed) which can easily be added via the html block. I'd like to be able to slip a prefetch link conditionally into the head when ...
0
votes
0
answers
12
views
Auto embeds don't work for attachment descriptions
I am able to paste a Youtube link into a post and have it auto embed just fine, but if I go to edit a media description, and put the link there, and then view the attachment page for that media, it ...
0
votes
0
answers
14
views
Embedding an external webpage within a page? Is it possible, is it a good idea?
I manage www.CLCCedarRapids.com and have given it an overhaul. There is one thing that still bugs me though... if you click on giving or events it takes you to an external webpage (through Planning ...
0
votes
0
answers
31
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
29
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
9
views
Embed Latest Track (Dynamic Updating) SoundCloud
As part of the site I'm building I'm embedding some content from SoundCloud on the site. Is it possible to either embed the latest track uploaded *and have that update dynamically whenever a new track ...
0
votes
0
answers
69
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
37
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
367
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
53
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
86
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
20
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
209
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
19
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
171
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
31
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
35
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
3k
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
33
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
158
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
18k
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
12
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
62
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
49
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
36
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
140
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
220
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
405
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
59
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
349
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
34
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
6k
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
1
answer
507
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
1
answer
232
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
1
answer
399
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
0
answers
127
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
1
answer
137
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 ...
3
votes
2
answers
306
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
0
answers
2k
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
0
answers
37
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
1
answer
352
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
1
answer
219
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
0
answers
104
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 ...