Embeds (YouTube, Spotify) Work Live but Won’t Load in Block Editor [closed]
I fixed my own issue by clearing my browser cache. (Ugh. It’s always the simplest thing that I miss.)
I fixed my own issue by clearing my browser cache. (Ugh. It’s always the simplest thing that I miss.)
Embbeded YouTube video not showing when admin logged in
add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed
I found the issue. The issue is with Advanced Custom Fields(ACF). update_post_meta did not work for this field. ACF wanted me to reference the field by ID rather than title and to use update_field function. I know that talking about ACF here is frowned upon so feel free to take this question down. Their documentation … Read more
How about this shortcode: function alternative_youtube_embed_func( $atts ) { $a = shortcode_atts( array( ‘id’ => ‘ScMzIvxBSi4’ // youtube video ID from video URL ), $atts); return ‘<a href=”https://www.youtube.com/watch?v=’ . $a[“id”] . ‘” rel=”noopener noreferrer” target=”_blank”><img width=”560″ height=”315″ src=”https://img.youtube.com/vi/’ . $a[“id”] . ‘/0.jpg” alt=”link to youtube video” /></a>’; } add_shortcode( ‘alternative-youtube-embed’, ‘alternative_youtube_embed_func’ ); Add a play-button … Read more
Pull latest Youtube Video from json url and make new post
Without recommending a plugin, I would suggest looking at a service like IFTTT which allows you to chain API’s together. From the website: IFTTT is a service that lets you create powerful connections with one simple statement ‘if this then that’. Channels are the basic building blocks of IFTTT. Each Channel has its own Triggers … Read more
Don’t know if this is your only issue, but you’re using the_title() to build your URI. This ECHOS the title, which is not what you want. Instead, you should be using get_the_title(). I’d also urlencode the title, as Jan suggested. Your best bet is to print out the YouTube URI after you build it, then … Read more
You have to add the meta og:video tags into your header for it to recognize them. Simple Facebook Connect does this automagically for YouTube content: http://wordpress.org/extend/plugins/simple-facebook-connect/ More info on OpenGraph tags here: http://developers.facebook.com/docs/opengraph/
The theme determines whether to show excerpts or full content on archive pages (e.g. the cateogry listing), and since you’re on WordPress.com, you’ll probably have to change themes to one that shows the full content on archive pages. There’s a listing here, don’t know how complete it is: http://wpbtips.wordpress.com/2009/03/25/full-posts-in-archive-pages/ You might also try putting the … Read more