Hide download option video shortcode
Hide download option video shortcode
Hide download option video shortcode
Is there a way to auto generate poster image for videos
It sounds like you want the download attribute. Here is an example: <a href=”/media/my_new_song.mp3″ download>click to download my song</a> Here is a W3Schools article for further reference.
Video Block does not autoplay
If you want to add the file to the WordPress Media Library, you can use media_handle_upload(). The function returns the attachment post ID on success, so you can save that in a post meta and then use the relevant function to get the attachment/file details, e.g. wp_get_attachment_url() can be used to get the attachment URL. … Read more
The best solution here is to use the built-in filter for embed parameters: <?php function mytheme_embed_defaults( $defaults ) { return array( ‘width’ => 100, ‘height’ => 100 ); } add_filter( ’embed_defaults’, ‘mytheme_embed_defaults’ ); ?> This code can be added to your theme’s functions.php file and you can change the numbers to reflect the sizes that … Read more
To display shortcodes in widgets , use a regular text widget, and add this line to your theme’s functions.php file: // Use shortcodes in text widgets. add_filter(‘widget_text’, ‘do_shortcode’); This tells WordPress to render the shortcodes in widgets. and if you want to call your shortcode by php you can use do_shortcode() function // Use shortcode … Read more
To do this you’ll need a plugin that adds the flash format to the “let me in” list that WordPress has. This may help: http://wordpress.org/extend/plugins/easy-flash-embed/
query_posts is for modifying the main loop only, if you’re doing additional queries outside of or within the main loop, create a new WP_Query instance. also- I’m not sure why you have showposts=1 and then get_option(‘posts_per_page’) immediately after. If for example posts_per_page was set to 10, that string would evaluate to showposts=110
Had a bit of a brain wave and thought I would capture the output and return it in the function. Turns out it fixed the problem so the final code ended up looking like this: function amazon_video($atts){ extract( shortcode_atts( array( ‘file’ => $file ), $atts ) ); $url = get_bloginfo(‘url’); $return = “<embed src=””.$url.”/jwplayer/player.swf” name=”player” … Read more