A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
8 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')...
1
vote
1answer
26 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
88 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
21 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
10 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
16 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
20 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
15 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
32 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
22 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
35 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
33 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
0answers
20 views

Replace content in several posts: Embeded video code (shortcode) with a new video player code

I have a wordpress site using old video plugin called FLV Embed and i want to replace it with any new video player code or any other video plugin shortcode. Currently this plugin uses this shortcode ...
0
votes
0answers
14 views

Load table content from one page into another

I am creating a website with different member levels, for every member level there is a page which only that member category can see. (This is already setup with a plugin) I want to create a main ...
0
votes
1answer
12 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
28 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-...
0
votes
0answers
22 views

Include _embed query param on /revisions endpoint?

Does anyone know if it is possible to include the _embed query param in the WordPress revisions endpoint? So something like this: http://example.com/wp-json/wp/v2/posts/215/revisions?_embed I am ...
1
vote
0answers
38 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
14 views

rerender gutenberg facebook embed widget after API content loaded

Is there a helper function for rerender gutenberg embeds after SPA's content is loaded, pls? I got embed block from post's content, but is not rendered as facebook post widget, just wrapped url. For ...
0
votes
0answers
11 views

How to embed an admin/plugin settings page in a post for frontend users?

I would want to embed certain admin pages on a frontend page so users can manage setting without going to wp-admin. Also, I would want to strip the sidebar when I embed admin pages in an iframe on a ...
0
votes
0answers
19 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
34 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
0answers
29 views

How to replace old YouTube embed code in Wordpress

I'm moving an old site from ExpressionEngine to Wordpress. The blog has over 3000 posts and some of them have YouTube videos embedded in them using code like this: <object width="425" height="344"&...
0
votes
0answers
32 views

Display App and Play Store ratings

I want to display my app's ratings from the App and Play Store on my app's website. Therefore I want to combine the ratings from the both stores (e.g. 4 stars on the App Store and 5 stars on the Play ...
0
votes
1answer
39 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
59 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
41 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
1k 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
632 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
26 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
64 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
105 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
1answer
527 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
144 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
63 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
vote
0answers
22 views

Is there a way to create embed codes from wordpress/buddypress content?

I am looking for a way to create embed codes for content like, posts, images, videos, comments and buddypress content and components to be posted on external websites and apps. So for instance ...
0
votes
1answer
192 views

Youtube iframe embed keeps disappearing from page

I am trying to embed a video on my homepage. I add the embed code from YouTube and paste it into a custom html blog on the gutenberg editor. I click update and check my website and the video is there....
0
votes
0answers
38 views

'[code]' shortcode to markup programming code does not work

I have been trying to embed some simple code on a practice blog and it has no effect other than to display the tag as text. I am aware there is no code in the image but believe me I have tried. The ...
0
votes
1answer
300 views

How to edit embed filter for youtube video to allow responsive full width layout

Im trying to edit the suggested embed filter from wordpress.org to make youtube videos always stay 100% width inside its container div, while keeping the appropriate height dimension as needed. Is ...
1
vote
0answers
14 views

Display total questions of Moodle in Wordpress [closed]

I have a site with Moodle and Wordpress and I'm looking for how can I display the total number of questions in Wordpress. For example if I have 3 different courses for sale with Woocomerce, I would ...
1
vote
1answer
23 views

Cannot find an OLD Gravity Form on an OLD Word Press site [closed]

I am not a regular user of Word Press but I have recently been editing some Gravity Forms on our websites that feed data into Salesforce. On the Admin page, there is a tab for "Forms" with subtabs for ...
2
votes
0answers
160 views

Embed YouTube video on category description

I would like to embed a YouTube video on my category description pages. When I pasted the URL or embed code in the editor, I see the video. But on the page itself it just shows the code. Is there a ...
1
vote
0answers
21 views

How to display real-time data which is stored in an IBM Cloud web app

I have created a web app on IBM cloud which is displaying real-time data from an electrical sensor (this sensor is transmitting data on that web app using wi-fi). Now I want to display this data in a ...
0
votes
2answers
304 views

How To Display Content from a website on wordpress page?

So, I have been working on a gaming website for a long time. There are similar sites as mine made with Wordpress, but they display alerts of the game (fetched from other website). For example - ...
0
votes
1answer
44 views

Output Post with ACF Fields into other Post

I got a post that should be embeded, included or outputted - however you call it - into another post. I prefer a solo code variant. So far I have tested various shortcode plugins - but they don't ...
0
votes
1answer
233 views

wp_editor embed shortcode not working within my plugin

for my own plugin I have a create-form which includes at least two editor fields and I insert them like this wp_editor('', 'dbfield'); The editor is shown in the form, it gets saved into the ...
1
vote
1answer
74 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 ...
0
votes
0answers
157 views

oembed facebook link?

I'm trying to oembed some facebook video . . . without ay chance so far . .. I'd like to avoid any plugin for this. I went through toe documentation but nothing to do, I'm declaring in my functions....
0
votes
1answer
82 views

Bootstrap theme embedded iframes are distorted [closed]

I'm trying to embed videos onto a page, but they are displaying all stretched out. Here's what it should look like, and this is what it currently looks like. Here's my embed code: <iframe width="...