Avoid embedding YouTube videos and open them in a new window

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

feed url problem

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

how to show all post with its contents

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