Get uploaded video URL

To get the URL of a video attachment (like an MP4 file), you should use wp_get_attachment_url() and not wp_get_attachment_link() because the latter returns an HTML for an anchor linking to the attachment page or the attachment file itself: $video_url = wp_get_attachment_url( $attachment_ID ); // Sample output: https://example.com/wp-content/uploads/2020/11/video.mp4 $att_page = wp_get_attachment_link( $attachment_ID, ‘full’, true ); // … Read more

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