Tag Info

New answers tagged

1

You could try mashing all the patterns together in one big regexp or and then doing a simple line by line parse of the content: function theme_oembed_videos() { global $post; if ( $post && $post->post_content ) { global $shortcode_tags; // Make a copy of global shortcode tags - we'll temporarily overwrite it. ...


0

Due a bug in get_tag_regex(), this won't work properly. See bug #26674. You can use the get_media_embedded_in_content() function for both shortcode and embedded media (it looks for these HTML tags: audio, video, object, embed, or iframe), just be sure to use content with applied filters and shortcode executed. For example: $post_id = 125; $post = ...


1

This might help. On the YouTube video page, choose Share, then choose Embed, then choose Show More. Remove checks in boxes for "Show Player controls" and "Show Video Title and Player Actions." Choose largest given width size or custom size that is equal to or slightly greater than your div container width. Copy the code. Paste the code into your post, ...



Top 50 recent answers are included