I have this function to convert any YouTube URL in any post or page to embed :- function embed_youtube_an($post_content) { global $posts; //preg_match('|http://www.youtube.com/watch?v=([a-zA-Z0-9]+)|', $posts->post_content, $matches); preg_match('#http://w?w?w?.?youtube.com/watch\?v=([A-Za-z0-9\-_]+)#s', $posts->post_content, $matches); if...
  • May 20, 2022
  • 0 Comments
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...
  • May 19, 2022
  • 0 Comments
I’m looking for a way to show a certain pinterest pinboard in a post. I’ve found in the WordPress.com Documentation that you can simply post your pinboards URL there....
  • May 17, 2022
  • 0 Comments
I really like how you can just paste a URL right into the post… such as: http://youtube.com/watch?v=xyz or http://vimeo.com/123456 What I want to do is change the default code...
  • May 17, 2022
  • 0 Comments
When I embed a YouTube video in the suggest manner (paste url) it adds this as an object. Is there a way to embed as IFRAME instead? 1 Answer...
  • May 16, 2022
  • 0 Comments