WordPress keeps altering my embed code

The issue is WordPress’ core configuration of TinyMCE, which strips IFRAME tags. You can modify this configuration, to allow IFRAME tags, by hooking into tiny_mce_before_init. For example, the following code will prevent TinyMCE from stripping IFRAME, PRE, and DIV tags: function mytheme_tinymce_config( $init ) { // Change code cleanup/content filtering config // Don’t remove line … Read more

Search XML file from within WordPress?

Here’s a PHP library which uses SOAP calls to access JIRA: https://github.com/jrbeeman/php-jira However, if you can get the XML file into a place PHP can access it then you can use general PHP calls to parse and read the XML file, e.g. SimpleXML http://php.net/manual/en/book.simplexml.php From there you can put your code in a theme template … Read more

vimeo/youtube video embed with thumbnails

If you embed a vimeo video at that size it hides the playback buttons, no magic involved. EDIT- to display a static thumb of a youtube video: your video url: http://www.youtube.com/watch?v=WQO-aOdJLiw take the v= portion of the url to get the large thumb url: http://img.youtube.com/vi/WQO-aOdJLiw/0.jpg and the small thumb url: http://img.youtube.com/vi/WQO-aOdJLiw/1.jpg

Vimeo video embeds doesnt seem to work with ACF [closed]

If the custom field contains just the URL you can achieve this using wp_oembed_get $video_url=”https://vimeo.com/75791532″; $video = wp_oembed_get( $video_url ); echo $video; If the custom field contains other content as well something like this should work. $content=”<p>Check out hte latest vid!</p> https://vimeo.com/75791532″; $content = apply_filters(‘the_content’, $content); echo $content; the_content filter automatically applies the oembed filter.

Gist shortcode is not working

Gist tags and oembed handling is specific to WordPress.com, and doesn’t come bundled with standard WordPress from wordpress.org You will need to acquire a plugin to register gists as an oembed provider, or add embed tags. There are plenty of plugins that do this available, I use this one. If you’d like to write your … Read more

Audio Playlists – Multiple file type support?

No, it’s not supported currently in the core playlist as I understand it. The following are just some rough ideas: Within the WPPlaylistView.playCurrentSrc() method, in the wp-playlist.js file, we have: this.mejs.setSrc( this.playerNode.attr( ‘src’ ) ); This is currently only for a single source. I checked the definition of srcSet() in MediaElment.js and found: // This … Read more