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
9 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
13 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
14 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
28 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
16 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
27 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
19 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
15 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
9 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
21 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
32 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
12 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
10 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
17 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
28 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
23 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
22 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
36 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
39 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
25 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 ...
2
votes
2answers
709 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
448 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
23 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
59 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
71 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
456 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
125 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
48 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
156 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
37 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
209 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
22 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
137 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
91 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
40 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
212 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
73 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
149 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
76 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="...
0
votes
1answer
34 views

Problem with Apply Filters on URL in meta box filed of custom port type

I am using Easy Content Types for a custom post type and metabox with several fields including one called ecpt_website. I have a custom page template which is outputting all of the fields nicely ...
0
votes
1answer
141 views

Insert Link to Audio versus Embed Audio Player

I've run into a very odd problem. One of my authors will upload an audio file in the Media Manager, and instead of giving the option to embed a media player, it just inserts a link to the audio file. ...
0
votes
1answer
4k views

How to Embed HTML files directly into Wordpress

I looking to find a Wordpress Addon that would allow me to embed HTML files directly in the my WordPress interface. After having done some research the only method I seem to find is by adding the ...
1
vote
1answer
775 views

Video embeds work in backend, but are not parsed in frontend

When I try to embed a YouTube video using one of the following ways: By entering a YouTube URL By entering an [embed] shortcode By adding a video through the media browser (which results in an [embed]...
1
vote
0answers
126 views

Specifying a single file from multi-file GIST (wordpress.com) [closed]

How can one embed a single file from a multi-file Github Gist on a free hosted wordpress.com site? That is, the gist has multiple files in it, for logical association, and I want to use the files ...