What folder to place Large Video files?

WordPress doesn’t process uploaded files directly from file system, it stores information about them as attachments in database. If you need to turn a directly uploaded file into an attachment the term for it would be a sideload. There are some API functions in WP to help with the task, starting with media_handle_sideload(). Also note … Read more

Add cron schedule to upload video on save_post

I think the best approach would be to only save a post meta value ( [or use a custom table][1] ) which indicates that a video upload should happen. Also register a schedule that will query for all posts that are marked as “upload needed” and do the upload in the schedule execution. https://gist.github.com/EdwardBock/85c971633ea1abf8f248f4fb468344ed You … Read more

Video Short Code and Media Fragments URI

Try embedding your video like this: <video controls> <source src=”https://www.domain.com/wp-content/uploads/2018/07/5898ca6e5276e4cd97c0bd730a2ed82c11780595-480p__80044.mp4#t=18″ type=”video/mp4″ /> </video> Paste this in your editor but make sure on the top right it is set to “Text” not “Visual”. When you switch it back to “Visual” you will just see blank gray frame. Preview the post and you should see the video … Read more

Cant play videos

If you movies are stored in /wp-content/movies/ and the URLs are site.com/movies/movietitle.mp4 then the links are pointing to the wrong place. Change the URL’s to include the wp-content path eg site.com/wp-content/movies/movietitle.mp4 Separate to your question, you could look at having your page-movies.php template load the links into a video element using javascript.

How to (correctly) embed a Facebook video?

It worked correctly for me, however I used the wp_enqueue_scripts hook to add the JavaScript. function mytheme_enqueue_scripts() { wp_register_script(‘facebook-video’, ‘https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.3’, ”, ”); wp_enqueue_script(‘facebook-video’); } add_action(‘wp_enqueue_scripts’, ‘mytheme_enqueue_scripts’); Do you see any errors in your browser console or network tab? Do you see the JS added to your page if you inspect?

Problem with video url from ad manager

WordPress supports the following video file types: .mp4, .m4v (MPEG-4), .mov (QuickTime), .wmv (Windows Media Video), .avi, .mpg, .ogv (Ogg), .3gp (3GPP), and .3g2 (3GPP2) From the “Uploading Files” Codex. If it’s not in the list, you’ll have to either add support or find a way to insert it manually which is what it sounds … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)