Questions tagged [oembed]

A protocol for allowing an embedded representation of a URL on third party sites.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
319 views

static variable loop not working in Wordpress

I have a function in my wordpress theme that deletes the first embedded video in a video post. See code below. This is in the functions.php file. /* - function that hides first video in post content -...
2
votes
0answers
975 views

Run oembed separately outside the_content()

I have this structure for my content.php : <div class="featured"> <!--featured image here--> </div> <h1 class="entry-title">Post Title</h1> <div class="entry-...
2
votes
0answers
593 views

wp_insert_post iframe missing

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = ...
1
vote
1answer
39 views

What is the correct oembed provider base url for self-hosted wordpress sites

I used to have both PCsteps.gr and Lifesteps.gr on the same server with the same IP. Oembed would work by default, I could embed posts from one site to the other without any problems. However, since ...
1
vote
1answer
42 views

Why is my oembed function modifying Twitter embed?

Building a theme with Boostrap 4 and WordPress 5.0.1. Under Bootstrap's documentation for embed video the following format is required for responsive videos: <div class="embed-responsive embed-...
1
vote
0answers
14 views

How to change the oembed “type”?

By default the oEmbed type of my wordpress posts is "rich", but I want to convert it to "Video". I spent 2+ hours trying to find the answer but with no luck, is it possible?
1
vote
1answer
228 views

Problem with oEmbed in some themes

I registered my oembed provider, in my wp cms (provider is not whitelisted in WP community). But I have problems with this oembed url. Mentioned oembed url is working in some themes, and in other I ...
1
vote
1answer
84 views

JSON in oembed not being internationalized (using QTranslateX)

I'm using the QTranslateX plugin at its latest version, 3.4.6.8, in a fresh WordPress 4.7.1 installation. At the moment everything is working OK. But I've seen that in JSON-oembed pages there's some ...
1
vote
0answers
510 views

How can I remove the first video from a post and feature it?

I am trying to develop a theme in which when you select a 'video' post format, it automatically gets the first video from the post and features it (instead of where the featured image would normally ...
1
vote
0answers
110 views

Conditional check for embedded video in the_content

I have a site where single.php displays the post stuff in this order: title featured image the_content I would like to remove the featured image IF the_content includes an embedded link (f.eg. to a ...
0
votes
0answers
41 views

Advanced Custom Fields oEmbed video width and height

I'm using Advanced Custom Fields plugin and i have a oEmbed field in it where i want to display YouTube videos. This is how they look now: http://electives-abroad.org/custom-field-test/ Why do they ...
0
votes
0answers
22 views

oembed_dataparse filter not running at all for standard YouTube embed

I need to wrap a div around all YouTube embeds in posts on our WP site. WordPress version is 4.9.6 The posts in question are WooComerce products Videos are being embedded by simply pasting a YouTube ...
0
votes
1answer
46 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 ...
0
votes
0answers
13 views

Embed on WordPress shows a black video player

We are trying to add YouTube or Twitter URLs in the editor however it converts them to a video player that does not work. When I press edit on that page it shows the tweet/video player fine, as soon ...
0
votes
1answer
914 views

Advanced Custom Fields oembed only outputs YouTube URL

Having the exact same problem as @Hjalmar on Advanced Custom Fields, but still no fix. Only the URL text displays. Tried the original ACF oembed option: <div class="embed-container"> <?...
0
votes
0answers
31 views

Modify oembed code conditionally

My users have sprung a requirement on me that I am having some difficulty figuring out. I've tied myself up in knots trying to unravel the the logic needed. The original spec of this website I am ...
0
votes
1answer
45 views

Load oEmbed iframe within ajax call

I'm trying to load oembed shortcode loaded via ajax. The problem is that the oembed shortcode seems to work as I have a blockquote instead of the instagram link. However the blockquote is not ...
0
votes
0answers
25 views

Custom oEmbed not showing inside editor

I have added a custom oembed provider in my WordPress plugin wp_oembed_add_provider( 'https://links.collect.chat/*', 'https://collect.chat/forms-embed' ) Embed is working fine in posts and pages, ...
0
votes
0answers
438 views

oEmbed not working in WordPress

I am using custom embed URL for embedding a video. Embedding Youtube and Vimeo working really fine. But only this URL is not working. But if I add via iframeit is working. But I need to add this via ...
0
votes
0answers
90 views

Keep excerpt from stripping URLs and enable autoembed for youtube ONLY?

Is there an easy way to drop something into functions? I tried removing all filters from the_excerpt and the URLs are still being stripped (not links, but just straight URLs). I've scoured the ...
0
votes
0answers
126 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
0answers
298 views

Why doesn't wp_oembed_get() for the video post format not work?

I have this code: <?php if ( has_post_format ('video') ) { ?> <div class="video-head"> <?php $video = get_post_meta( $post->ID, '_format_video_embed', true ); ...
0
votes
0answers
197 views

How to Hide Ancestors/Threads in Embedded Tweets

I'd like my embedded tweets to not show a parent/ancestor, for example this is how Wordpress oEmbed displays a single tweet I'd prefer all to look like: I tried this approach to filter on ...
0
votes
1answer
28 views

Remove link function from oembed image or video

I would like to include oembed video on my site, but I would like to disable the link back to the original site. Is this possible? Thank you!
0
votes
1answer
355 views

Wordpress Mediaelement - Youtube Videos Embed Options

I have a custom field where I define the Youtube Url as a string. https://www.youtube.com/watch?v=3VqHtEF3LPE This then becomes the src in my theme's shortcode: <?php $ysrc = get_field('...
0
votes
1answer
62 views

Use oEmbed for static html

I am trying to add a jQuery plugin (https://github.com/rmanivannan/speedometer-jquery-plugin) to a Wordpress page (not post), however the plugin is not behaving as expected. I think this may have ...
0
votes
1answer
2k views

class-oembed Error

PHP Fatal error: Cannot redeclare _wp_oembed_get_object() (previously declared in /home/samdonme/public_html/wp-includes/embed.php:112) in /home/samdonme/public_html/wp-includes/class-oembed.php on ...
0
votes
1answer
103 views

oEmbed fails half of the times. Could I reload the request on fail?

I'm developing a site where I'm using oEmbed through Advanced Custom Fields, to display vimeo-videos. This is major feature for the site, and one of the clients requests is that he/she needs to be ...
0
votes
0answers
120 views

Adding an official oEmbed provider to Wordpress

How can I add an official oEmbed provider to this list: https://codex.wordpress.org/Embeds ?
0
votes
1answer
428 views

oEmbed Video in Modal

I'm attempting to use jQuery to open up a video in a modal but can't come up with a way to pass the oEmbed video url to the function which opens the modal. In my theme the user adds the video to an ...
0
votes
1answer
60 views

Turn twitter-urls into list timelines?

I know there's the oEmbed ability to embed a specific tweet, as described in their documentation... but is there any way to simply get the latest in a particular twitter feed, without setting up an ...
0
votes
1answer
361 views

Add class to oEmbed video from within post editor?

I'd like to be able to add classes to oembed videos on the fly in the post editor. This way I could have some videos act like images and alignleft or alignright and have text wrap around them, while ...
0
votes
0answers
169 views

Conditionally enable autoplay when using oEmbed in a custom widget

I'd like to have all oEmbed urls (youtube, vimeo, soundcloud, etc.) behave as they usually behave, with one exception. In my theme I've created a widget that gets data from a given post. The post ...
0
votes
1answer
84 views

After import, oEmbeds non-functional until manual republish

I've just finished cleaning up the data from an application I was using previously and have got everything into a few WXR files. As a final test, I just imported them back into a local test ...